/*
 * DesktopApplication1View.java
 * 
 * 
 * 
 */
package desktopapplication1;

import org.jdesktop.application.Action;
import org.jdesktop.application.ResourceMap;
import org.jdesktop.application.SingleFrameApplication;
import org.jdesktop.application.FrameView;
import org.jdesktop.application.TaskMonitor;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
import java.util.HashMap;
import javax.swing.DefaultComboBoxModel;
import javax.swing.DefaultListModel;
import javax.swing.Timer;
import javax.swing.Icon;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
import se.oru.informatik.InformatikDB;
import se.oru.informatik.InformatikException;

/**
 * The application's main frame.
 */
    public class DesktopApplication1View extends FrameView {


    public DesktopApplication1View(SingleFrameApplication app) {
        super(app);

        startDB();
        initComponents();
        reloadKonto();
        //reloadLand();
        reloadResa();
        //reloadDagar();
        //reloadUtgifter();
        reloadAnvandareAdmin();
        setEditableAnvandare(false); 
        reloadUppdragAdmin();
        setEditableUppdrag(false);
        reloadReseordrarChef();
        reloadForskottAdmin();
        jPReseorderKantChef.setVisible(false);
        jPReseorderChef.setVisible(false);
        jPReseersattningChef.setVisible(false);
        jPReseersattningKantChef.setVisible(false);
        JDForskottPopupAdmin.setVisible(false);
        
            validering = new Validering();

        // status bar initialization - message timeout, idle icon and busy animation, etc
        ResourceMap resourceMap = getResourceMap();
        int messageTimeout = resourceMap.getInteger("StatusBar.messageTimeout");
        messageTimer = new Timer(messageTimeout, new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                statusMessageLabel.setText("");
            }
        });
        messageTimer.setRepeats(false);
        int busyAnimationRate = resourceMap.getInteger("StatusBar.busyAnimationRate");
        for (int i = 0; i < busyIcons.length; i++) {
            busyIcons[i] = resourceMap.getIcon("StatusBar.busyIcons[" + i + "]");
        }
        busyIconTimer = new Timer(busyAnimationRate, new ActionListener() {

            public void actionPerformed(ActionEvent e) {
                busyIconIndex = (busyIconIndex + 1) % busyIcons.length;
                statusAnimationLabel.setIcon(busyIcons[busyIconIndex]);
            }
        });
        idleIcon = resourceMap.getIcon("StatusBar.idleIcon");
        statusAnimationLabel.setIcon(idleIcon);
        progressBar.setVisible(false);

        // connecting action tasks to status bar via TaskMonitor
        TaskMonitor taskMonitor = new TaskMonitor(getApplication().getContext());
        taskMonitor.addPropertyChangeListener(new java.beans.PropertyChangeListener() {

            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                String propertyName = evt.getPropertyName();
                if ("started".equals(propertyName)) {
                    if (!busyIconTimer.isRunning()) {
                        statusAnimationLabel.setIcon(busyIcons[0]);
                        busyIconIndex = 0;
                        busyIconTimer.start();
                    }
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(true);
                } else if ("done".equals(propertyName)) {
                    busyIconTimer.stop();
                    statusAnimationLabel.setIcon(idleIcon);
                    progressBar.setVisible(false);
                    progressBar.setValue(0);
                } else if ("message".equals(propertyName)) {
                    String text = (String) (evt.getNewValue());
                    statusMessageLabel.setText((text == null) ? "" : text);
                    messageTimer.restart();
                } else if ("progress".equals(propertyName)) {
                    int value = (Integer) (evt.getNewValue());
                    progressBar.setVisible(true);
                    progressBar.setIndeterminate(false);
                    progressBar.setValue(value);
                }
            }
        });
    }

    private void startDB() {
        try {

            // anslut till databasen
            idb = new InformatikDB(System.getProperty("user.dir") + "/TA.FDB");
        } catch (InformatikException e) {
            JOptionPane.showMessageDialog(null, e.getMessage());
        }


    }

    @Action
    public void showAboutBox() {
        if (aboutBox == null) {
            JFrame mainFrame = DesktopApplication1.getApplication().getMainFrame();
            aboutBox = new DesktopApplication1AboutBox(mainFrame);
            aboutBox.setLocationRelativeTo(mainFrame);
        }
        DesktopApplication1.getApplication().show(aboutBox);
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        mainPanel = new javax.swing.JPanel();
        jTpFlikar = new javax.swing.JTabbedPane();
        jPKonsult = new javax.swing.JPanel();
        jPvilketLandKonsult = new javax.swing.JPanel();
        jPReseinfoKonsult = new javax.swing.JPanel();
        jLblHemDatumKonsult = new javax.swing.JLabel();
        jCbLandKonsult = new javax.swing.JComboBox();
        jLblLandKonsult = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        jTaSyfteKonsult = new javax.swing.JTextArea();
        jLblSyfteKonsult = new javax.swing.JLabel();
        jLblavresedatumKonsult = new javax.swing.JLabel();
        jTfAvresaDatumKonsult = new javax.swing.JTextField();
        jTfHemresaDatumKonsult = new javax.swing.JTextField();
        jScrollPane7 = new javax.swing.JScrollPane();
        jLstLandResaKonsult = new javax.swing.JList();
        jLblKontoKonsult = new javax.swing.JLabel();
        jCbKontoKonsult = new javax.swing.JComboBox();
        jBtnSparaResaKonsult = new javax.swing.JButton();
        jBtnLaggTillLandKonsult = new javax.swing.JButton();
        jPRegistreradeResorKonsult = new javax.swing.JPanel();
        jButton2 = new javax.swing.JButton();
        jScrollPane6 = new javax.swing.JScrollPane();
        jLstReggadeResorKonsult = new javax.swing.JList();
        jBtnReseOrderKonsult = new javax.swing.JButton();
        jPdagarKonsult = new javax.swing.JPanel();
        jPResedagarKonsult = new javax.swing.JPanel();
        jScrlPchooseDayKonsult = new javax.swing.JScrollPane();
        jLstDagarKonsult = new javax.swing.JList();
        jBtnNyDagKonsult = new javax.swing.JButton();
        jPDaginfoKonsult = new javax.swing.JPanel();
        jCbSemesterKonsult = new javax.swing.JCheckBox();
        jChkFrukostKonsult = new javax.swing.JCheckBox();
        jLblMåltidKonsult = new javax.swing.JLabel();
        jBtnSparaTraktamente = new javax.swing.JButton();
        jLabel5 = new javax.swing.JLabel();
        jChkLunchKonsult = new javax.swing.JCheckBox();
        jChkMiddagKonsult = new javax.swing.JCheckBox();
        jLblSemesterKonsult = new javax.swing.JLabel();
        jTfDaginfoDatumKonsult = new javax.swing.JTextField();
        jCbDaginfoLandKonsult = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        jLblDaginfoDatumKonsult = new javax.swing.JLabel();
        jLbDaginfoLandKonsult = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        jPReggaNyUtgiftKonsult = new javax.swing.JPanel();
        jLblBeskrivningKonsult = new javax.swing.JLabel();
        jLblBeloppKonsult = new javax.swing.JLabel();
        jTfBeloppKonsult = new javax.swing.JTextField();
        jLblMomsKonsult = new javax.swing.JLabel();
        jCbMomsKonsult = new javax.swing.JComboBox();
        jLblValutaKonsult = new javax.swing.JLabel();
        jCbValutaKonsult = new javax.swing.JComboBox();
        jCbUtgiftstypKonsult = new javax.swing.JComboBox();
        jLblUtgiftstypKonsult = new javax.swing.JLabel();
        jScrollPane3 = new javax.swing.JScrollPane();
        jTaUtgiftsBeskrivningKonsult = new javax.swing.JTextArea();
        jLblAntalMilKonsult = new javax.swing.JLabel();
        jTfAntalMilKonsult = new javax.swing.JTextField();
        jLblKvittoKonsult = new javax.swing.JLabel();
        jCbKvittoKonsult = new javax.swing.JCheckBox();
        jBtnSparaUtgiftKonsult = new javax.swing.JButton();
        jLblMilersattningKonsult = new javax.swing.JLabel();
        jTfMilersattningKonsult = new javax.swing.JTextField();
        jBtnAntalMilOKKonsult = new javax.swing.JButton();
        jLblErsättningKonsult = new javax.swing.JLabel();
        jPReggadeUtgifterKonsult = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        jLstUtgifterKonsult = new javax.swing.JList();
        jBtnNyUtgiftKonsult = new javax.swing.JButton();
        jPAdmin = new javax.swing.JPanel();
        jPkostnadsÖversiktKantAdmin = new javax.swing.JPanel();
        jPKostnadsOversiktAdmin = new javax.swing.JPanel();
        jPforskottAdmin = new javax.swing.JPanel();
        jScrollPane10 = new javax.swing.JScrollPane();
        jLiForskottAdmin = new javax.swing.JList();
        jBtnVisaInfoforskottrAdmin = new javax.swing.JButton();
        jPanel8 = new javax.swing.JPanel();
        jScrollPane4 = new javax.swing.JScrollPane();
        jLGodkändaPosterAdmin = new javax.swing.JList();
        jBtnVisaInfoKostnadsöversiktAdmin = new javax.swing.JButton();
        jPAnvandareKantAdmin = new javax.swing.JPanel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jPAnvandareAdmin = new javax.swing.JPanel();
        jBtnRaderaAnvandareAdmin = new javax.swing.JButton();
        jTFPersonnummerAnvandareAdmin = new javax.swing.JTextField();
        jLblEpostAdmin = new javax.swing.JLabel();
        jLblPersonnummerAnvandareAdmin = new javax.swing.JLabel();
        jLAnvandarNamnAdmin = new javax.swing.JLabel();
        jBtnSparaAnvandareAdmin = new javax.swing.JButton();
        jScrollPane5 = new javax.swing.JScrollPane();
        jLiAnvandareAdmin = new javax.swing.JList();
        jTFEpostadressAdmin = new javax.swing.JTextField();
        jTFAnvandarnamnAdmin = new javax.swing.JTextField();
        jBtnLäggTillNyAnvAdmin = new javax.swing.JButton();
        jLblRoll = new javax.swing.JLabel();
        jTFRollAnvandareAdmin = new javax.swing.JTextField();
        jLblLosenordAnvandareAdmin = new javax.swing.JLabel();
        jTFLosenordAdmin = new javax.swing.JTextField();
        jBtnRedigeraAnvändareAdmin = new javax.swing.JButton();
        jPUppdragKantAdmin = new javax.swing.JPanel();
        jPUppdragAdmin = new javax.swing.JPanel();
        jTFKontonummerAdmin = new javax.swing.JTextField();
        jLblKontonummerAdmin = new javax.swing.JLabel();
        jScrollPane8 = new javax.swing.JScrollPane();
        jLUppdragAdmin = new javax.swing.JList();
        jBtnSparaUppdragAdmin = new javax.swing.JButton();
        jBtnRaderaUppdragAdmin = new javax.swing.JButton();
        jLblUppdragsnamnAdmin = new javax.swing.JLabel();
        jTFUppdragsnamnAdmin = new javax.swing.JTextField();
        jBtnLaggTillNyUppdragAdmin = new javax.swing.JButton();
        jBtnRedigeraUppdragAdmin = new javax.swing.JButton();
        jPChef = new javax.swing.JPanel();
        jPCardLayoutChef = new javax.swing.JPanel();
        jPReseersattningKantChef = new javax.swing.JPanel();
        jPReseersattningChef = new javax.swing.JPanel();
        jScrollPane12 = new javax.swing.JScrollPane();
        jLiDatumReseChef = new javax.swing.JList();
        jScrollPane15 = new javax.swing.JScrollPane();
        jTblUgifterReseChef = new javax.swing.JTable();
        jTFNamnReseersChef = new javax.swing.JTextField();
        jLblKonsultNamnReseChef = new javax.swing.JLabel();
        jTFLandReseersChef = new javax.swing.JTextField();
        jLblLandReseersChef = new javax.swing.JLabel();
        jLblSyfteReseersChef = new javax.swing.JLabel();
        jScrollPane9 = new javax.swing.JScrollPane();
        jTASyfteReseersChef = new javax.swing.JTextArea();
        jLblDatumReseersChef = new javax.swing.JLabel();
        jLblUtgifterReseersChef = new javax.swing.JLabel();
        jPReseorderKantChef = new javax.swing.JPanel();
        jPReseorderChef = new javax.swing.JPanel();
        jTFBeloppReseorderChef = new javax.swing.JTextField();
        jBtnAvslåReseorderChef = new javax.swing.JButton();
        jLblSyfteReseorderChef = new javax.swing.JLabel();
        jTFKonsultReseorderChef = new javax.swing.JTextField();
        jLblLandReseorderChef = new javax.swing.JLabel();
        jLblNamnReseorderChef = new javax.swing.JLabel();
        jTFLandReseorderChef = new javax.swing.JTextField();
        jScrollPane17 = new javax.swing.JScrollPane();
        jTFSyfteReseorderChef = new javax.swing.JTextArea();
        jLblBeloppReseorderChef = new javax.swing.JLabel();
        jBtnGodkännReseorderChef = new javax.swing.JButton();
        jLblAnsoktforskottChef = new javax.swing.JLabel();
        jCBForskottReseorderChef = new javax.swing.JCheckBox();
        jPChefArendeKant = new javax.swing.JPanel();
        jPNyaArendenChef = new javax.swing.JPanel();
        jScrollReseOrderChef = new javax.swing.JScrollPane();
        jLiReseOrderChef = new javax.swing.JList();
        jScrollReseersattningChef = new javax.swing.JScrollPane();
        jLiReseersattningChef = new javax.swing.JList();
        menuBar = new javax.swing.JMenuBar();
        javax.swing.JMenu fileMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem exitMenuItem = new javax.swing.JMenuItem();
        javax.swing.JMenu helpMenu = new javax.swing.JMenu();
        javax.swing.JMenuItem aboutMenuItem = new javax.swing.JMenuItem();
        statusPanel = new javax.swing.JPanel();
        javax.swing.JSeparator statusPanelSeparator = new javax.swing.JSeparator();
        statusMessageLabel = new javax.swing.JLabel();
        statusAnimationLabel = new javax.swing.JLabel();
        progressBar = new javax.swing.JProgressBar();
        jScrollPane13 = new javax.swing.JScrollPane();
        jTextArea1 = new javax.swing.JTextArea();
        jDreseOrder = new javax.swing.JDialog();
        jPanel1 = new javax.swing.JPanel();
        jTxtFieldkonsultNamn = new javax.swing.JTextField();
        jPanel2 = new javax.swing.JPanel();
        jScrollPane14 = new javax.swing.JScrollPane();
        jTextArea2 = new javax.swing.JTextArea();
        jPanel3 = new javax.swing.JPanel();
        jDlgReseOrderComboBoxLand = new javax.swing.JComboBox();
        jPanel5 = new javax.swing.JPanel();
        jTxtFieldDatumTill = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        jTxtFieldDatumFran = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        jPanel6 = new javax.swing.JPanel();
        jCBJaReseorder = new javax.swing.JCheckBox();
        jTxtFieldBeloppReseorder = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jBtnOk = new javax.swing.JButton();
        jBtnClose = new javax.swing.JButton();
        JDForskottPopupAdmin = new javax.swing.JDialog();
        jTFKonsultnamnForskottAdmin = new javax.swing.JTextField();
        jTFSyfteForskottAdmin = new javax.swing.JTextField();
        jLblnamnAdmin = new javax.swing.JLabel();
        jLblLandAdmin = new javax.swing.JLabel();
        JBtnSkickaForskottAdmin = new javax.swing.JButton();
        jLbSyfteAdmin = new javax.swing.JLabel();
        jScrollPane11 = new javax.swing.JScrollPane();
        jTASyfteForskottAdmin = new javax.swing.JTextArea();
        jTFBeloppForskottAdmin = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();

        mainPanel.setName("mainPanel"); // NOI18N

        jTpFlikar.setName("jTpFlikar"); // NOI18N

        jPKonsult.setName("jPKonsult"); // NOI18N

        jPvilketLandKonsult.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPvilketLandKonsult.setName("jPvilketLandKonsult"); // NOI18N

        jPReseinfoKonsult.setBorder(javax.swing.BorderFactory.createTitledBorder("Reseinfo"));
        jPReseinfoKonsult.setName("jPReseinfoKonsult"); // NOI18N

        org.jdesktop.application.ResourceMap resourceMap = org.jdesktop.application.Application.getInstance(desktopapplication1.DesktopApplication1.class).getContext().getResourceMap(DesktopApplication1View.class);
        jLblHemDatumKonsult.setText(resourceMap.getString("jLblHemDatumKonsult.text")); // NOI18N
        jLblHemDatumKonsult.setEnabled(false);
        jLblHemDatumKonsult.setName("jLblHemDatumKonsult"); // NOI18N

        jCbLandKonsult.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-none-" }));
        jCbLandKonsult.setEnabled(false);
        jCbLandKonsult.setName("jCbLandKonsult"); // NOI18N
        jCbLandKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCbLandKonsultActionPerformed(evt);
            }
        });

        jLblLandKonsult.setText(resourceMap.getString("jLblLandKonsult.text")); // NOI18N
        jLblLandKonsult.setEnabled(false);
        jLblLandKonsult.setName("jLblLandKonsult"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        jTaSyfteKonsult.setColumns(20);
        jTaSyfteKonsult.setLineWrap(true);
        jTaSyfteKonsult.setRows(5);
        jTaSyfteKonsult.setName("jTaSyfteKonsult"); // NOI18N
        jScrollPane1.setViewportView(jTaSyfteKonsult);

        jLblSyfteKonsult.setText(resourceMap.getString("jLblSyfteKonsult.text")); // NOI18N
        jLblSyfteKonsult.setEnabled(false);
        jLblSyfteKonsult.setName("jLblSyfteKonsult"); // NOI18N

        jLblavresedatumKonsult.setText(resourceMap.getString("jLblavresedatumKonsult.text")); // NOI18N
        jLblavresedatumKonsult.setEnabled(false);
        jLblavresedatumKonsult.setName("jLblavresedatumKonsult"); // NOI18N

        jTfAvresaDatumKonsult.setEditable(false);
        jTfAvresaDatumKonsult.setName("jTfAvresaDatumKonsult"); // NOI18N

        jTfHemresaDatumKonsult.setEditable(false);
        jTfHemresaDatumKonsult.setName("jTfHemresaDatumKonsult"); // NOI18N

        jScrollPane7.setName("jScrollPane7"); // NOI18N

        jLstLandResaKonsult.setEnabled(false);
        jLstLandResaKonsult.setName("jLstLandResaKonsult"); // NOI18N
        jLstLandResaKonsult.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLstLandResaKonsultValueChanged(evt);
            }
        });
        jScrollPane7.setViewportView(jLstLandResaKonsult);

        jLblKontoKonsult.setText(resourceMap.getString("jLblKontoKonsult.text")); // NOI18N
        jLblKontoKonsult.setEnabled(false);
        jLblKontoKonsult.setName("jLblKontoKonsult"); // NOI18N

        jCbKontoKonsult.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-none-" }));
        jCbKontoKonsult.setEnabled(false);
        jCbKontoKonsult.setName("jCbKontoKonsult"); // NOI18N

        jBtnSparaResaKonsult.setText(resourceMap.getString("jBtnSparaResaKonsult.text")); // NOI18N
        jBtnSparaResaKonsult.setEnabled(false);
        jBtnSparaResaKonsult.setName("jBtnSparaResaKonsult"); // NOI18N
        jBtnSparaResaKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnSparaResaKonsultActionPerformed(evt);
            }
        });

        jBtnLaggTillLandKonsult.setText(resourceMap.getString("jBtnLaggTillLandKonsult.text")); // NOI18N
        jBtnLaggTillLandKonsult.setEnabled(false);
        jBtnLaggTillLandKonsult.setName("jBtnLaggTillLandKonsult"); // NOI18N
        jBtnLaggTillLandKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnLaggTillLandKonsultActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPReseinfoKonsultLayout = new javax.swing.GroupLayout(jPReseinfoKonsult);
        jPReseinfoKonsult.setLayout(jPReseinfoKonsultLayout);
        jPReseinfoKonsultLayout.setHorizontalGroup(
            jPReseinfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReseinfoKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPReseinfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPReseinfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(jPReseinfoKonsultLayout.createSequentialGroup()
                            .addGroup(jPReseinfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jLblavresedatumKonsult)
                                .addComponent(jLblHemDatumKonsult)
                                .addComponent(jTfAvresaDatumKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGap(152, 152, 152))
                        .addGroup(jPReseinfoKonsultLayout.createSequentialGroup()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 256, Short.MAX_VALUE)
                            .addGap(51, 51, 51))
                        .addGroup(jPReseinfoKonsultLayout.createSequentialGroup()
                            .addComponent(jLblSyfteKonsult)
                            .addContainerGap(165, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPReseinfoKonsultLayout.createSequentialGroup()
                            .addGroup(jPReseinfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jScrollPane7, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 297, Short.MAX_VALUE)
                                .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPReseinfoKonsultLayout.createSequentialGroup()
                                    .addGroup(jPReseinfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(jCbLandKonsult, javax.swing.GroupLayout.Alignment.LEADING, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jLblLandKonsult, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                    .addComponent(jBtnLaggTillLandKonsult)
                                    .addGap(92, 92, 92)))
                            .addGap(10, 10, 10))
                        .addGroup(jPReseinfoKonsultLayout.createSequentialGroup()
                            .addComponent(jLblKontoKonsult)
                            .addContainerGap(179, Short.MAX_VALUE))
                        .addGroup(jPReseinfoKonsultLayout.createSequentialGroup()
                            .addComponent(jTfHemresaDatumKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 67, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap(240, Short.MAX_VALUE))
                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPReseinfoKonsultLayout.createSequentialGroup()
                            .addComponent(jCbKontoKonsult, 0, 297, Short.MAX_VALUE)
                            .addContainerGap()))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPReseinfoKonsultLayout.createSequentialGroup()
                        .addComponent(jBtnSparaResaKonsult)
                        .addContainerGap())))
        );
        jPReseinfoKonsultLayout.setVerticalGroup(
            jPReseinfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReseinfoKonsultLayout.createSequentialGroup()
                .addContainerGap(23, Short.MAX_VALUE)
                .addComponent(jLblLandKonsult)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPReseinfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCbLandKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBtnLaggTillLandKonsult))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane7, javax.swing.GroupLayout.PREFERRED_SIZE, 69, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLblSyfteKonsult)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLblavresedatumKonsult)
                .addGap(2, 2, 2)
                .addComponent(jTfAvresaDatumKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLblHemDatumKonsult)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTfHemresaDatumKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(2, 2, 2)
                .addComponent(jLblKontoKonsult)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jCbKontoKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jBtnSparaResaKonsult)
                .addGap(5, 5, 5))
        );

        jPRegistreradeResorKonsult.setBorder(javax.swing.BorderFactory.createTitledBorder("Registrerade resor"));
        jPRegistreradeResorKonsult.setName("jPRegistreradeResorKonsult"); // NOI18N

        jButton2.setText(resourceMap.getString("jButton2.text")); // NOI18N
        jButton2.setName("jButton2"); // NOI18N
        jButton2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton2ActionPerformed(evt);
            }
        });

        jScrollPane6.setName("jScrollPane6"); // NOI18N

        jLstReggadeResorKonsult.setName("jLstReggadeResorKonsult"); // NOI18N
        jLstReggadeResorKonsult.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLstReggadeResorKonsultValueChanged(evt);
            }
        });
        jLstReggadeResorKonsult.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jLstReggadeResorKonsultFocusGained(evt);
            }
            public void focusLost(java.awt.event.FocusEvent evt) {
                jLstReggadeResorKonsultFocusLost(evt);
            }
        });
        jScrollPane6.setViewportView(jLstReggadeResorKonsult);

        jBtnReseOrderKonsult.setText(resourceMap.getString("jBtnReseOrderKonsult.text")); // NOI18N
        jBtnReseOrderKonsult.setName("jBtnReseOrderKonsult"); // NOI18N
        jBtnReseOrderKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnReseOrderKonsultActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPRegistreradeResorKonsultLayout = new javax.swing.GroupLayout(jPRegistreradeResorKonsult);
        jPRegistreradeResorKonsult.setLayout(jPRegistreradeResorKonsultLayout);
        jPRegistreradeResorKonsultLayout.setHorizontalGroup(
            jPRegistreradeResorKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPRegistreradeResorKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPRegistreradeResorKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 307, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPRegistreradeResorKonsultLayout.createSequentialGroup()
                        .addComponent(jBtnReseOrderKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(jButton2)))
                .addContainerGap())
        );
        jPRegistreradeResorKonsultLayout.setVerticalGroup(
            jPRegistreradeResorKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPRegistreradeResorKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane6, javax.swing.GroupLayout.PREFERRED_SIZE, 91, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPRegistreradeResorKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton2)
                    .addComponent(jBtnReseOrderKonsult))
                .addContainerGap())
        );

        javax.swing.GroupLayout jPvilketLandKonsultLayout = new javax.swing.GroupLayout(jPvilketLandKonsult);
        jPvilketLandKonsult.setLayout(jPvilketLandKonsultLayout);
        jPvilketLandKonsultLayout.setHorizontalGroup(
            jPvilketLandKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPvilketLandKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPvilketLandKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPvilketLandKonsultLayout.createSequentialGroup()
                        .addGap(10, 10, 10)
                        .addComponent(jPReseinfoKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addComponent(jPRegistreradeResorKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPvilketLandKonsultLayout.setVerticalGroup(
            jPvilketLandKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPvilketLandKonsultLayout.createSequentialGroup()
                .addComponent(jPRegistreradeResorKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 163, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPReseinfoKonsult, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(11, 11, 11))
        );

        jPdagarKonsult.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPdagarKonsult.setName("jPdagarKonsult"); // NOI18N

        jPResedagarKonsult.setBorder(javax.swing.BorderFactory.createTitledBorder("Resedagar"));
        jPResedagarKonsult.setName("jPResedagarKonsult"); // NOI18N

        jScrlPchooseDayKonsult.setName("jScrlPchooseDayKonsult"); // NOI18N

        jLstDagarKonsult.setSelectionMode(javax.swing.ListSelectionModel.SINGLE_SELECTION);
        jLstDagarKonsult.setEnabled(false);
        jLstDagarKonsult.setName("jLstDagarKonsult"); // NOI18N
        jLstDagarKonsult.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLstDagarKonsultValueChanged(evt);
            }
        });
        jLstDagarKonsult.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                jLstDagarKonsultFocusLost(evt);
            }
        });
        jScrlPchooseDayKonsult.setViewportView(jLstDagarKonsult);

        jBtnNyDagKonsult.setText(resourceMap.getString("jBtnNyDagKonsult.text")); // NOI18N
        jBtnNyDagKonsult.setEnabled(false);
        jBtnNyDagKonsult.setName("jBtnNyDagKonsult"); // NOI18N
        jBtnNyDagKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnNyDagKonsultActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPResedagarKonsultLayout = new javax.swing.GroupLayout(jPResedagarKonsult);
        jPResedagarKonsult.setLayout(jPResedagarKonsultLayout);
        jPResedagarKonsultLayout.setHorizontalGroup(
            jPResedagarKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPResedagarKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPResedagarKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jBtnNyDagKonsult, javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrlPchooseDayKonsult, javax.swing.GroupLayout.DEFAULT_SIZE, 262, Short.MAX_VALUE))
                .addContainerGap())
        );
        jPResedagarKonsultLayout.setVerticalGroup(
            jPResedagarKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPResedagarKonsultLayout.createSequentialGroup()
                .addComponent(jScrlPchooseDayKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(jBtnNyDagKonsult)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPDaginfoKonsult.setBorder(javax.swing.BorderFactory.createTitledBorder("Daginfo"));
        jPDaginfoKonsult.setName("jPDaginfoKonsult"); // NOI18N

        jCbSemesterKonsult.setText(resourceMap.getString("jCbSemesterKonsult.text")); // NOI18N
        jCbSemesterKonsult.setEnabled(false);
        jCbSemesterKonsult.setName("jCbSemesterKonsult"); // NOI18N
        jCbSemesterKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCbSemesterKonsultActionPerformed(evt);
            }
        });

        jChkFrukostKonsult.setText(resourceMap.getString("jChkFrukostKonsult.text")); // NOI18N
        jChkFrukostKonsult.setEnabled(false);
        jChkFrukostKonsult.setName("jChkFrukostKonsult"); // NOI18N

        jLblMåltidKonsult.setText(resourceMap.getString("jLblMåltidKonsult.text")); // NOI18N
        jLblMåltidKonsult.setEnabled(false);
        jLblMåltidKonsult.setName("jLblMåltidKonsult"); // NOI18N

        jBtnSparaTraktamente.setText(resourceMap.getString("jBtnSparaTraktamente.text")); // NOI18N
        jBtnSparaTraktamente.setEnabled(false);
        jBtnSparaTraktamente.setName("jBtnSparaTraktamente"); // NOI18N
        jBtnSparaTraktamente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnSparaTraktamenteActionPerformed(evt);
            }
        });

        jLabel5.setName("jLabel5"); // NOI18N

        jChkLunchKonsult.setText(resourceMap.getString("jChkLunchKonsult.text")); // NOI18N
        jChkLunchKonsult.setEnabled(false);
        jChkLunchKonsult.setName("jChkLunchKonsult"); // NOI18N

        jChkMiddagKonsult.setText(resourceMap.getString("jChkMiddagKonsult.text")); // NOI18N
        jChkMiddagKonsult.setEnabled(false);
        jChkMiddagKonsult.setName("jChkMiddagKonsult"); // NOI18N

        jLblSemesterKonsult.setText(resourceMap.getString("jLblSemesterKonsult.text")); // NOI18N
        jLblSemesterKonsult.setEnabled(false);
        jLblSemesterKonsult.setName("jLblSemesterKonsult"); // NOI18N

        jTfDaginfoDatumKonsult.setEditable(false);
        jTfDaginfoDatumKonsult.setEnabled(false);
        jTfDaginfoDatumKonsult.setName("jTfDaginfoDatumKonsult"); // NOI18N

        jCbDaginfoLandKonsult.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-none-" }));
        jCbDaginfoLandKonsult.setEnabled(false);
        jCbDaginfoLandKonsult.setName("jCbDaginfoLandKonsult"); // NOI18N

        jLabel6.setName("jLabel6"); // NOI18N

        jLblDaginfoDatumKonsult.setText(resourceMap.getString("jLblDaginfoDatumKonsult.text")); // NOI18N
        jLblDaginfoDatumKonsult.setEnabled(false);
        jLblDaginfoDatumKonsult.setName("jLblDaginfoDatumKonsult"); // NOI18N

        jLbDaginfoLandKonsult.setText(resourceMap.getString("jLbDaginfoLandKonsult.text")); // NOI18N
        jLbDaginfoLandKonsult.setEnabled(false);
        jLbDaginfoLandKonsult.setName("jLbDaginfoLandKonsult"); // NOI18N

        javax.swing.GroupLayout jPDaginfoKonsultLayout = new javax.swing.GroupLayout(jPDaginfoKonsult);
        jPDaginfoKonsult.setLayout(jPDaginfoKonsultLayout);
        jPDaginfoKonsultLayout.setHorizontalGroup(
            jPDaginfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPDaginfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPDaginfoKonsultLayout.createSequentialGroup()
                        .addGroup(jPDaginfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPDaginfoKonsultLayout.createSequentialGroup()
                                .addComponent(jChkFrukostKonsult)
                                .addGap(12, 12, 12)
                                .addComponent(jChkLunchKonsult)
                                .addGap(10, 10, 10)
                                .addComponent(jChkMiddagKonsult))
                            .addComponent(jLblMåltidKonsult, javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPDaginfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                .addComponent(jBtnSparaTraktamente)
                                .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                                    .addComponent(jLblSemesterKonsult)
                                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                    .addComponent(jCbSemesterKonsult))))
                        .addContainerGap())
                    .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                        .addComponent(jLabel5)
                        .addContainerGap())
                    .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jCbDaginfoLandKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 152, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap())
                    .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                        .addComponent(jLbDaginfoLandKonsult)
                        .addContainerGap(58, Short.MAX_VALUE))
                    .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                        .addComponent(jTfDaginfoDatumKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 78, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(194, Short.MAX_VALUE))
                    .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                        .addComponent(jLblDaginfoDatumKonsult)
                        .addContainerGap(117, Short.MAX_VALUE))))
        );
        jPDaginfoKonsultLayout.setVerticalGroup(
            jPDaginfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel5)
                .addGap(12, 12, 12)
                .addComponent(jLblDaginfoDatumKonsult)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTfDaginfoDatumKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 18, Short.MAX_VALUE)
                .addComponent(jLbDaginfoLandKonsult)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPDaginfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                        .addComponent(jLabel6)
                        .addGap(33, 33, 33))
                    .addGroup(jPDaginfoKonsultLayout.createSequentialGroup()
                        .addComponent(jCbDaginfoLandKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)))
                .addGroup(jPDaginfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblSemesterKonsult)
                    .addComponent(jCbSemesterKonsult))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLblMåltidKonsult)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPDaginfoKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jChkFrukostKonsult)
                    .addComponent(jChkLunchKonsult)
                    .addComponent(jChkMiddagKonsult))
                .addGap(18, 18, 18)
                .addComponent(jBtnSparaTraktamente)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPdagarKonsultLayout = new javax.swing.GroupLayout(jPdagarKonsult);
        jPdagarKonsult.setLayout(jPdagarKonsultLayout);
        jPdagarKonsultLayout.setHorizontalGroup(
            jPdagarKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPdagarKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPdagarKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPDaginfoKonsult, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPResedagarKonsult, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(10, Short.MAX_VALUE))
        );
        jPdagarKonsultLayout.setVerticalGroup(
            jPdagarKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPdagarKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPResedagarKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPDaginfoKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(62, Short.MAX_VALUE))
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPanel4.setName("jPanel4"); // NOI18N

        jPReggaNyUtgiftKonsult.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPReggaNyUtgiftKonsult.border.title"))); // NOI18N
        jPReggaNyUtgiftKonsult.setToolTipText(resourceMap.getString("jPReggaNyUtgiftKonsult.toolTipText")); // NOI18N
        jPReggaNyUtgiftKonsult.setName("jPReggaNyUtgiftKonsult"); // NOI18N

        jLblBeskrivningKonsult.setText(resourceMap.getString("jLblBeskrivningKonsult.text")); // NOI18N
        jLblBeskrivningKonsult.setEnabled(false);
        jLblBeskrivningKonsult.setName("jLblBeskrivningKonsult"); // NOI18N

        jLblBeloppKonsult.setText(resourceMap.getString("jLblBeloppKonsult.text")); // NOI18N
        jLblBeloppKonsult.setEnabled(false);
        jLblBeloppKonsult.setName("jLblBeloppKonsult"); // NOI18N

        jTfBeloppKonsult.setEditable(false);
        jTfBeloppKonsult.setText(resourceMap.getString("jTfBeloppKonsult.text")); // NOI18N
        jTfBeloppKonsult.setName("jTfBeloppKonsult"); // NOI18N

        jLblMomsKonsult.setText(resourceMap.getString("jLblMomsKonsult.text")); // NOI18N
        jLblMomsKonsult.setEnabled(false);
        jLblMomsKonsult.setName("jLblMomsKonsult"); // NOI18N

        jCbMomsKonsult.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-none-", "25%", "12%", "6%" }));
        jCbMomsKonsult.setEnabled(false);
        jCbMomsKonsult.setName("jCbMomsKonsult"); // NOI18N

        jLblValutaKonsult.setText(resourceMap.getString("jLblValutaKonsult.text")); // NOI18N
        jLblValutaKonsult.setEnabled(false);
        jLblValutaKonsult.setName("jLblValutaKonsult"); // NOI18N

        jCbValutaKonsult.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-none-", "SEK", "NOK", "EUR", "DKK", "ISK" }));
        jCbValutaKonsult.setEnabled(false);
        jCbValutaKonsult.setName("jCbValutaKonsult"); // NOI18N

        jCbUtgiftstypKonsult.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "-none-", "Bil", "Flyg" }));
        jCbUtgiftstypKonsult.setEnabled(false);
        jCbUtgiftstypKonsult.setName("jCbUtgiftstypKonsult"); // NOI18N
        jCbUtgiftstypKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCbUtgiftstypKonsultActionPerformed(evt);
            }
        });

        jLblUtgiftstypKonsult.setText(resourceMap.getString("jLblUtgiftstypKonsult.text")); // NOI18N
        jLblUtgiftstypKonsult.setEnabled(false);
        jLblUtgiftstypKonsult.setName("jLblUtgiftstypKonsult"); // NOI18N

        jScrollPane3.setName("jScrollPane3"); // NOI18N

        jTaUtgiftsBeskrivningKonsult.setColumns(20);
        jTaUtgiftsBeskrivningKonsult.setLineWrap(true);
        jTaUtgiftsBeskrivningKonsult.setRows(5);
        jTaUtgiftsBeskrivningKonsult.setEnabled(false);
        jTaUtgiftsBeskrivningKonsult.setName("jTaUtgiftsBeskrivningKonsult"); // NOI18N
        jScrollPane3.setViewportView(jTaUtgiftsBeskrivningKonsult);

        jLblAntalMilKonsult.setText(resourceMap.getString("jLblAntalMilKonsult.text")); // NOI18N
        jLblAntalMilKonsult.setEnabled(false);
        jLblAntalMilKonsult.setName("jLblAntalMilKonsult"); // NOI18N

        jTfAntalMilKonsult.setText(resourceMap.getString("jTfAntalMilKonsult.text")); // NOI18N
        jTfAntalMilKonsult.setEnabled(false);
        jTfAntalMilKonsult.setName("jTfAntalMilKonsult"); // NOI18N

        jLblKvittoKonsult.setText(resourceMap.getString("jLblKvittoKonsult.text")); // NOI18N
        jLblKvittoKonsult.setEnabled(false);
        jLblKvittoKonsult.setName("jLblKvittoKonsult"); // NOI18N

        jCbKvittoKonsult.setText(resourceMap.getString("jCbKvittoKonsult.text")); // NOI18N
        jCbKvittoKonsult.setEnabled(false);
        jCbKvittoKonsult.setName("jCbKvittoKonsult"); // NOI18N

        jBtnSparaUtgiftKonsult.setText(resourceMap.getString("jBtnSparaUtgiftKonsult.text")); // NOI18N
        jBtnSparaUtgiftKonsult.setEnabled(false);
        jBtnSparaUtgiftKonsult.setName("jBtnSparaUtgiftKonsult"); // NOI18N
        jBtnSparaUtgiftKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnSparaUtgiftKonsultActionPerformed(evt);
            }
        });

        jLblMilersattningKonsult.setText(resourceMap.getString("jLblMilersattningKonsult.text")); // NOI18N
        jLblMilersattningKonsult.setEnabled(false);
        jLblMilersattningKonsult.setName("jLblMilersattningKonsult"); // NOI18N

        jTfMilersattningKonsult.setEditable(false);
        jTfMilersattningKonsult.setText(resourceMap.getString("jTfMilersattningKonsult.text")); // NOI18N
        jTfMilersattningKonsult.setEnabled(false);
        jTfMilersattningKonsult.setName("jTfMilersattningKonsult"); // NOI18N

        jBtnAntalMilOKKonsult.setFont(resourceMap.getFont("jBtnAntalMilOKKonsult.font")); // NOI18N
        jBtnAntalMilOKKonsult.setText(resourceMap.getString("jBtnAntalMilOKKonsult.text")); // NOI18N
        jBtnAntalMilOKKonsult.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));
        jBtnAntalMilOKKonsult.setEnabled(false);
        jBtnAntalMilOKKonsult.setName("jBtnAntalMilOKKonsult"); // NOI18N
        jBtnAntalMilOKKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnAntalMilOKKonsultActionPerformed(evt);
            }
        });

        jLblErsättningKonsult.setText(resourceMap.getString("jLblErsättningKonsult.text")); // NOI18N
        jLblErsättningKonsult.setEnabled(false);
        jLblErsättningKonsult.setName("jLblErsättningKonsult"); // NOI18N

        javax.swing.GroupLayout jPReggaNyUtgiftKonsultLayout = new javax.swing.GroupLayout(jPReggaNyUtgiftKonsult);
        jPReggaNyUtgiftKonsult.setLayout(jPReggaNyUtgiftKonsultLayout);
        jPReggaNyUtgiftKonsultLayout.setHorizontalGroup(
            jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReggaNyUtgiftKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)
                    .addComponent(jLblBeskrivningKonsult)
                    .addGroup(jPReggaNyUtgiftKonsultLayout.createSequentialGroup()
                        .addComponent(jLblKvittoKonsult)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jCbKvittoKonsult))
                    .addComponent(jLblMomsKonsult)
                    .addComponent(jCbMomsKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(jPReggaNyUtgiftKonsultLayout.createSequentialGroup()
                        .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLblBeloppKonsult)
                            .addComponent(jTfBeloppKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(18, 18, 18)
                        .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jCbValutaKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLblValutaKonsult)))
                    .addGroup(jPReggaNyUtgiftKonsultLayout.createSequentialGroup()
                        .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jCbUtgiftstypKonsult, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jLblUtgiftstypKonsult, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTfAntalMilKonsult)
                            .addComponent(jLblAntalMilKonsult, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLblMilersattningKonsult)
                            .addGroup(jPReggaNyUtgiftKonsultLayout.createSequentialGroup()
                                .addComponent(jBtnAntalMilOKKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 43, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(jTfMilersattningKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 66, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jLblErsättningKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 128, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addComponent(jBtnSparaUtgiftKonsult, javax.swing.GroupLayout.Alignment.TRAILING))
                .addContainerGap())
        );
        jPReggaNyUtgiftKonsultLayout.setVerticalGroup(
            jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReggaNyUtgiftKonsultLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblUtgiftstypKonsult)
                    .addComponent(jLblAntalMilKonsult)
                    .addComponent(jLblMilersattningKonsult)
                    .addComponent(jLblErsättningKonsult))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jCbUtgiftstypKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTfAntalMilKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBtnAntalMilOKKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTfMilersattningKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLblBeskrivningKonsult)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollPane3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addGroup(jPReggaNyUtgiftKonsultLayout.createSequentialGroup()
                        .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLblKvittoKonsult)
                            .addComponent(jCbKvittoKonsult))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLblValutaKonsult)
                            .addComponent(jLblBeloppKonsult))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPReggaNyUtgiftKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jTfBeloppKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jCbValutaKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLblMomsKonsult)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jCbMomsKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(34, 34, 34))
                    .addGroup(jPReggaNyUtgiftKonsultLayout.createSequentialGroup()
                        .addComponent(jBtnSparaUtgiftKonsult)
                        .addContainerGap())))
        );

        jPReggadeUtgifterKonsult.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPReggadeUtgifterKonsult.border.title"))); // NOI18N
        jPReggadeUtgifterKonsult.setName("jPReggadeUtgifterKonsult"); // NOI18N

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        jLstUtgifterKonsult.setEnabled(false);
        jLstUtgifterKonsult.setName("jLstUtgifterKonsult"); // NOI18N
        jLstUtgifterKonsult.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLstUtgifterKonsultValueChanged(evt);
            }
        });
        jScrollPane2.setViewportView(jLstUtgifterKonsult);

        jBtnNyUtgiftKonsult.setText(resourceMap.getString("jBtnNyUtgiftKonsult.text")); // NOI18N
        jBtnNyUtgiftKonsult.setEnabled(false);
        jBtnNyUtgiftKonsult.setName("jBtnNyUtgiftKonsult"); // NOI18N
        jBtnNyUtgiftKonsult.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnNyUtgiftKonsultActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPReggadeUtgifterKonsultLayout = new javax.swing.GroupLayout(jPReggadeUtgifterKonsult);
        jPReggadeUtgifterKonsult.setLayout(jPReggadeUtgifterKonsultLayout);
        jPReggadeUtgifterKonsultLayout.setHorizontalGroup(
            jPReggadeUtgifterKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReggadeUtgifterKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPReggadeUtgifterKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 289, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBtnNyUtgiftKonsult))
                .addContainerGap(19, Short.MAX_VALUE))
        );
        jPReggadeUtgifterKonsultLayout.setVerticalGroup(
            jPReggadeUtgifterKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPReggadeUtgifterKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 113, Short.MAX_VALUE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jBtnNyUtgiftKonsult)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPReggadeUtgifterKonsult, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPReggaNyUtgiftKonsult, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPReggadeUtgifterKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPReggaNyUtgiftKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, 346, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(62, Short.MAX_VALUE))
        );

        jPReggaNyUtgiftKonsult.getAccessibleContext().setAccessibleName(resourceMap.getString("jPanel1.AccessibleContext.accessibleName")); // NOI18N
        jPReggaNyUtgiftKonsult.getAccessibleContext().setAccessibleDescription(resourceMap.getString("jPanel1.AccessibleContext.accessibleDescription")); // NOI18N

        javax.swing.GroupLayout jPKonsultLayout = new javax.swing.GroupLayout(jPKonsult);
        jPKonsult.setLayout(jPKonsultLayout);
        jPKonsultLayout.setHorizontalGroup(
            jPKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPKonsultLayout.createSequentialGroup()
                .addGap(14, 14, 14)
                .addComponent(jPvilketLandKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPdagarKonsult, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGap(796, 796, 796))
        );
        jPKonsultLayout.setVerticalGroup(
            jPKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPKonsultLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPKonsultLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPdagarKonsult, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPvilketLandKonsult, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(74, Short.MAX_VALUE))
        );

        jTpFlikar.addTab(resourceMap.getString("jPKonsult.TabConstraints.tabTitle"), jPKonsult); // NOI18N

        jPAdmin.setName("jPAdmin"); // NOI18N

        jPkostnadsÖversiktKantAdmin.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPkostnadsÖversiktKantAdmin.setName("jPkostnadsÖversiktKantAdmin"); // NOI18N

        jPKostnadsOversiktAdmin.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPKostnadsOversiktAdmin.border.title"))); // NOI18N
        jPKostnadsOversiktAdmin.setName("jPKostnadsOversiktAdmin"); // NOI18N

        jPforskottAdmin.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPforskottAdmin.border.title"))); // NOI18N
        jPforskottAdmin.setName("jPforskottAdmin"); // NOI18N

        jScrollPane10.setName("jScrollPane10"); // NOI18N

        jLiForskottAdmin.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jLiForskottAdmin.setName("jLiForskottAdmin"); // NOI18N
        jLiForskottAdmin.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLiForskottAdminValueChanged(evt);
            }
        });
        jScrollPane10.setViewportView(jLiForskottAdmin);

        jBtnVisaInfoforskottrAdmin.setText(resourceMap.getString("jBtnVisaInfoforskottrAdmin.text")); // NOI18N
        jBtnVisaInfoforskottrAdmin.setName("jBtnVisaInfoforskottrAdmin"); // NOI18N
        jBtnVisaInfoforskottrAdmin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnVisaInfoforskottrAdminActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPforskottAdminLayout = new javax.swing.GroupLayout(jPforskottAdmin);
        jPforskottAdmin.setLayout(jPforskottAdminLayout);
        jPforskottAdminLayout.setHorizontalGroup(
            jPforskottAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPforskottAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPforskottAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jBtnVisaInfoforskottrAdmin)
                    .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 224, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(7, Short.MAX_VALUE))
        );
        jPforskottAdminLayout.setVerticalGroup(
            jPforskottAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPforskottAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane10, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jBtnVisaInfoforskottrAdmin)
                .addContainerGap(37, Short.MAX_VALUE))
        );

        jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel8.border.title"))); // NOI18N
        jPanel8.setName("jPanel8"); // NOI18N

        jScrollPane4.setName("jScrollPane4"); // NOI18N

        jLGodkändaPosterAdmin.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Post att skicka", "Post att skicka", "Post att skicka", "Post att skicka" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jLGodkändaPosterAdmin.setName("jLGodkändaPosterAdmin"); // NOI18N
        jLGodkändaPosterAdmin.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLGodkändaPosterAdminValueChanged(evt);
            }
        });
        jScrollPane4.setViewportView(jLGodkändaPosterAdmin);

        jBtnVisaInfoKostnadsöversiktAdmin.setText(resourceMap.getString("jBtnVisaInfoKostnadsöversiktAdmin.text")); // NOI18N
        jBtnVisaInfoKostnadsöversiktAdmin.setName("jBtnVisaInfoKostnadsöversiktAdmin"); // NOI18N

        javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
        jPanel8.setLayout(jPanel8Layout);
        jPanel8Layout.setHorizontalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jBtnVisaInfoKostnadsöversiktAdmin)
                    .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 231, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel8Layout.setVerticalGroup(
            jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel8Layout.createSequentialGroup()
                .addComponent(jScrollPane4, javax.swing.GroupLayout.PREFERRED_SIZE, 176, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jBtnVisaInfoKostnadsöversiktAdmin)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPKostnadsOversiktAdminLayout = new javax.swing.GroupLayout(jPKostnadsOversiktAdmin);
        jPKostnadsOversiktAdmin.setLayout(jPKostnadsOversiktAdminLayout);
        jPKostnadsOversiktAdminLayout.setHorizontalGroup(
            jPKostnadsOversiktAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPKostnadsOversiktAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPKostnadsOversiktAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jPforskottAdmin, javax.swing.GroupLayout.Alignment.LEADING, 0, 253, Short.MAX_VALUE)
                    .addComponent(jPanel8, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPKostnadsOversiktAdminLayout.setVerticalGroup(
            jPKostnadsOversiktAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPKostnadsOversiktAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPforskottAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(77, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPkostnadsÖversiktKantAdminLayout = new javax.swing.GroupLayout(jPkostnadsÖversiktKantAdmin);
        jPkostnadsÖversiktKantAdmin.setLayout(jPkostnadsÖversiktKantAdminLayout);
        jPkostnadsÖversiktKantAdminLayout.setHorizontalGroup(
            jPkostnadsÖversiktKantAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPkostnadsÖversiktKantAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPKostnadsOversiktAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPkostnadsÖversiktKantAdminLayout.setVerticalGroup(
            jPkostnadsÖversiktKantAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPkostnadsÖversiktKantAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPKostnadsOversiktAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(58, Short.MAX_VALUE))
        );

        jPAnvandareKantAdmin.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPAnvandareKantAdmin.setName("jPAnvandareKantAdmin"); // NOI18N

        jLabel2.setName("jLabel2"); // NOI18N

        jLabel3.setName("jLabel3"); // NOI18N

        jLabel4.setName("jLabel4"); // NOI18N

        jPAnvandareAdmin.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPAnvandareAdmin.border.title"))); // NOI18N
        jPAnvandareAdmin.setName("jPAnvandareAdmin"); // NOI18N

        jBtnRaderaAnvandareAdmin.setText(resourceMap.getString("jBtnRaderaAnvandareAdmin.text")); // NOI18N
        jBtnRaderaAnvandareAdmin.setName("jBtnRaderaAnvandareAdmin"); // NOI18N
        jBtnRaderaAnvandareAdmin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnRaderaAnvandareAdminActionPerformed(evt);
            }
        });

        jTFPersonnummerAnvandareAdmin.setName("jTFPersonnummerAnvandareAdmin"); // NOI18N

        jLblEpostAdmin.setText(resourceMap.getString("jLblEpostAdmin.text")); // NOI18N
        jLblEpostAdmin.setName("jLblEpostAdmin"); // NOI18N

        jLblPersonnummerAnvandareAdmin.setText(resourceMap.getString("jLblPersonnummerAnvandareAdmin.text")); // NOI18N
        jLblPersonnummerAnvandareAdmin.setName("jLblPersonnummerAnvandareAdmin"); // NOI18N

        jLAnvandarNamnAdmin.setText(resourceMap.getString("jLAnvandarNamnAdmin.text")); // NOI18N
        jLAnvandarNamnAdmin.setName("jLAnvandarNamnAdmin"); // NOI18N

        jBtnSparaAnvandareAdmin.setText(resourceMap.getString("jBtnSparaAnvandareAdmin.text")); // NOI18N
        jBtnSparaAnvandareAdmin.setName("jBtnSparaAnvandareAdmin"); // NOI18N
        jBtnSparaAnvandareAdmin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnSparaAnvandareAdminActionPerformed(evt);
            }
        });

        jScrollPane5.setName("jScrollPane5"); // NOI18N

        jLiAnvandareAdmin.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Användare 1", "Användare 2", "Användare 3" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jLiAnvandareAdmin.setName("jLiAnvandareAdmin"); // NOI18N
        jLiAnvandareAdmin.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLiAnvandareAdminValueChanged(evt);
            }
        });
        jScrollPane5.setViewportView(jLiAnvandareAdmin);

        jTFEpostadressAdmin.setName("jTFEpostadressAdmin"); // NOI18N

        jTFAnvandarnamnAdmin.setName("jTFAnvandarnamnAdmin"); // NOI18N

        jBtnLäggTillNyAnvAdmin.setText(resourceMap.getString("jBtnLäggTillNyAnvAdmin.text")); // NOI18N
        jBtnLäggTillNyAnvAdmin.setName("jBtnLäggTillNyAnvAdmin"); // NOI18N
        jBtnLäggTillNyAnvAdmin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnLäggTillNyAnvAdminActionPerformed(evt);
            }
        });

        jLblRoll.setText(resourceMap.getString("jLblRoll.text")); // NOI18N
        jLblRoll.setName("jLblRoll"); // NOI18N

        jTFRollAnvandareAdmin.setText(resourceMap.getString("jTFRollAnvandareAdmin.text")); // NOI18N
        jTFRollAnvandareAdmin.setName("jTFRollAnvandareAdmin"); // NOI18N

        jLblLosenordAnvandareAdmin.setText(resourceMap.getString("jLblLosenordAnvandareAdmin.text")); // NOI18N
        jLblLosenordAnvandareAdmin.setName("jLblLosenordAnvandareAdmin"); // NOI18N

        jTFLosenordAdmin.setText(resourceMap.getString("jTFLosenordAdmin.text")); // NOI18N
        jTFLosenordAdmin.setName("jTFLosenordAdmin"); // NOI18N

        jBtnRedigeraAnvändareAdmin.setText(resourceMap.getString("jBtnRedigeraAnvändareAdmin.text")); // NOI18N
        jBtnRedigeraAnvändareAdmin.setName("jBtnRedigeraAnvändareAdmin"); // NOI18N
        jBtnRedigeraAnvändareAdmin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnRedigeraAnvändareAdminActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPAnvandareAdminLayout = new javax.swing.GroupLayout(jPAnvandareAdmin);
        jPAnvandareAdmin.setLayout(jPAnvandareAdminLayout);
        jPAnvandareAdminLayout.setHorizontalGroup(
            jPAnvandareAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPAnvandareAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPAnvandareAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPAnvandareAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jScrollPane5, javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jPAnvandareAdminLayout.createSequentialGroup()
                            .addComponent(jBtnRaderaAnvandareAdmin)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                            .addComponent(jBtnLäggTillNyAnvAdmin)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                            .addComponent(jBtnRedigeraAnvändareAdmin)))
                    .addComponent(jLblEpostAdmin)
                    .addComponent(jLblPersonnummerAnvandareAdmin)
                    .addComponent(jLblRoll)
                    .addComponent(jLblLosenordAnvandareAdmin)
                    .addGroup(jPAnvandareAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jTFPersonnummerAnvandareAdmin, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jTFAnvandarnamnAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, 241, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPAnvandareAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jTFLosenordAdmin, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jTFRollAnvandareAdmin, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jTFEpostadressAdmin, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 247, Short.MAX_VALUE)
                        .addComponent(jBtnSparaAnvandareAdmin))
                    .addComponent(jLAnvandarNamnAdmin))
                .addContainerGap(18, Short.MAX_VALUE))
        );
        jPAnvandareAdminLayout.setVerticalGroup(
            jPAnvandareAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPAnvandareAdminLayout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jScrollPane5, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPAnvandareAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBtnLäggTillNyAnvAdmin)
                    .addComponent(jBtnRaderaAnvandareAdmin)
                    .addComponent(jBtnRedigeraAnvändareAdmin))
                .addGap(18, 18, 18)
                .addComponent(jLAnvandarNamnAdmin)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTFAnvandarnamnAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLblPersonnummerAnvandareAdmin)
                .addGap(4, 4, 4)
                .addComponent(jTFPersonnummerAnvandareAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(4, 4, 4)
                .addComponent(jLblEpostAdmin)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTFEpostadressAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLblRoll)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTFRollAnvandareAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLblLosenordAnvandareAdmin)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTFLosenordAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jBtnSparaAnvandareAdmin))
        );

        javax.swing.GroupLayout jPAnvandareKantAdminLayout = new javax.swing.GroupLayout(jPAnvandareKantAdmin);
        jPAnvandareKantAdmin.setLayout(jPAnvandareKantAdminLayout);
        jPAnvandareKantAdminLayout.setHorizontalGroup(
            jPAnvandareKantAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPAnvandareKantAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPAnvandareKantAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel4)
                    .addComponent(jLabel2)
                    .addComponent(jLabel3))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPAnvandareAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(26, Short.MAX_VALUE))
        );
        jPAnvandareKantAdminLayout.setVerticalGroup(
            jPAnvandareKantAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPAnvandareKantAdminLayout.createSequentialGroup()
                .addGroup(jPAnvandareKantAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPAnvandareKantAdminLayout.createSequentialGroup()
                        .addGap(203, 203, 203)
                        .addComponent(jLabel2)
                        .addGap(32, 32, 32)
                        .addComponent(jLabel3)
                        .addGap(29, 29, 29)
                        .addComponent(jLabel4))
                    .addGroup(jPAnvandareKantAdminLayout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jPAnvandareAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(140, Short.MAX_VALUE))
        );

        jPUppdragKantAdmin.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPUppdragKantAdmin.setName("jPUppdragKantAdmin"); // NOI18N

        jPUppdragAdmin.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPUppdragAdmin.border.title"))); // NOI18N
        jPUppdragAdmin.setName("jPUppdragAdmin"); // NOI18N

        jTFKontonummerAdmin.setText(resourceMap.getString("jTFKontonummerAdmin.text")); // NOI18N
        jTFKontonummerAdmin.setName("jTFKontonummerAdmin"); // NOI18N

        jLblKontonummerAdmin.setText(resourceMap.getString("jLblKontonummerAdmin.text")); // NOI18N
        jLblKontonummerAdmin.setName("jLblKontonummerAdmin"); // NOI18N

        jScrollPane8.setName("jScrollPane8"); // NOI18N

        jLUppdragAdmin.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Uppdrag 1", "Uppdrag 2", "Uppdrag 3", "Uppdrag 4", "Uppdrag 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jLUppdragAdmin.setName("jLUppdragAdmin"); // NOI18N
        jLUppdragAdmin.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLUppdragAdminValueChanged(evt);
            }
        });
        jScrollPane8.setViewportView(jLUppdragAdmin);

        jBtnSparaUppdragAdmin.setText(resourceMap.getString("jBtnSparaUppdragAdmin.text")); // NOI18N
        jBtnSparaUppdragAdmin.setActionCommand(resourceMap.getString("jBtnSparaUppdragAdmin.actionCommand")); // NOI18N
        jBtnSparaUppdragAdmin.setName("jBtnSparaUppdragAdmin"); // NOI18N
        jBtnSparaUppdragAdmin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnSparaUppdragAdminActionPerformed(evt);
            }
        });

        jBtnRaderaUppdragAdmin.setText(resourceMap.getString("jBtnRaderaUppdragAdmin.text")); // NOI18N
        jBtnRaderaUppdragAdmin.setName("jBtnRaderaUppdragAdmin"); // NOI18N
        jBtnRaderaUppdragAdmin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnRaderaUppdragAdminActionPerformed(evt);
            }
        });

        jLblUppdragsnamnAdmin.setText(resourceMap.getString("jLblUppdragsnamnAdmin.text")); // NOI18N
        jLblUppdragsnamnAdmin.setName("jLblUppdragsnamnAdmin"); // NOI18N

        jTFUppdragsnamnAdmin.setText(resourceMap.getString("jTFUppdragsnamnAdmin.text")); // NOI18N
        jTFUppdragsnamnAdmin.setName("jTFUppdragsnamnAdmin"); // NOI18N

        jBtnLaggTillNyUppdragAdmin.setText(resourceMap.getString("jBtnLaggTillNyUppdragAdmin.text")); // NOI18N
        jBtnLaggTillNyUppdragAdmin.setName("jBtnLaggTillNyUppdragAdmin"); // NOI18N
        jBtnLaggTillNyUppdragAdmin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnLaggTillNyUppdragAdminActionPerformed(evt);
            }
        });

        jBtnRedigeraUppdragAdmin.setText(resourceMap.getString("jBtnRedigeraUppdragAdmin.text")); // NOI18N
        jBtnRedigeraUppdragAdmin.setName("jBtnRedigeraUppdragAdmin"); // NOI18N
        jBtnRedigeraUppdragAdmin.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnRedigeraUppdragAdminActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPUppdragAdminLayout = new javax.swing.GroupLayout(jPUppdragAdmin);
        jPUppdragAdmin.setLayout(jPUppdragAdminLayout);
        jPUppdragAdminLayout.setHorizontalGroup(
            jPUppdragAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPUppdragAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPUppdragAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPUppdragAdminLayout.createSequentialGroup()
                        .addComponent(jBtnRaderaUppdragAdmin)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jBtnLaggTillNyUppdragAdmin)
                        .addGap(18, 18, 18)
                        .addComponent(jBtnRedigeraUppdragAdmin))
                    .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 261, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblKontonummerAdmin)
                    .addGroup(jPUppdragAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jTFUppdragsnamnAdmin, javax.swing.GroupLayout.Alignment.LEADING)
                        .addComponent(jTFKontonummerAdmin, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 274, Short.MAX_VALUE)
                        .addComponent(jBtnSparaUppdragAdmin))
                    .addComponent(jLblUppdragsnamnAdmin))
                .addGap(33, 33, 33))
        );
        jPUppdragAdminLayout.setVerticalGroup(
            jPUppdragAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPUppdragAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane8, javax.swing.GroupLayout.PREFERRED_SIZE, 170, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPUppdragAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBtnRaderaUppdragAdmin)
                    .addComponent(jBtnLaggTillNyUppdragAdmin)
                    .addComponent(jBtnRedigeraUppdragAdmin))
                .addGap(18, 18, 18)
                .addComponent(jLblUppdragsnamnAdmin)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTFUppdragsnamnAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jLblKontonummerAdmin)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jTFKontonummerAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)
                .addComponent(jBtnSparaUppdragAdmin)
                .addContainerGap())
        );

        javax.swing.GroupLayout jPUppdragKantAdminLayout = new javax.swing.GroupLayout(jPUppdragKantAdmin);
        jPUppdragKantAdmin.setLayout(jPUppdragKantAdminLayout);
        jPUppdragKantAdminLayout.setHorizontalGroup(
            jPUppdragKantAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPUppdragKantAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPUppdragAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, 308, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(16, Short.MAX_VALUE))
        );
        jPUppdragKantAdminLayout.setVerticalGroup(
            jPUppdragKantAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPUppdragKantAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPUppdragAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(262, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPAdminLayout = new javax.swing.GroupLayout(jPAdmin);
        jPAdmin.setLayout(jPAdminLayout);
        jPAdminLayout.setHorizontalGroup(
            jPAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPkostnadsÖversiktKantAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(36, 36, 36)
                .addComponent(jPAnvandareKantAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(32, 32, 32)
                .addComponent(jPUppdragKantAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(809, Short.MAX_VALUE))
        );
        jPAdminLayout.setVerticalGroup(
            jPAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPkostnadsÖversiktKantAdmin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPUppdragKantAdmin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPAnvandareKantAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jTpFlikar.addTab(resourceMap.getString("jPAdmin.TabConstraints.tabTitle"), jPAdmin); // NOI18N

        jPChef.setName("jPChef"); // NOI18N

        jPCardLayoutChef.setName("jPCardLayoutChef"); // NOI18N
        jPCardLayoutChef.setPreferredSize(new java.awt.Dimension(500, 400));
        jPCardLayoutChef.setLayout(new java.awt.CardLayout());

        jPReseersattningKantChef.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPReseersattningKantChef.setName("jPReseersattningKantChef"); // NOI18N

        jPReseersattningChef.setBorder(javax.swing.BorderFactory.createTitledBorder("Reseersättning"));
        jPReseersattningChef.setName("jPReseersattningChef"); // NOI18N
        jPReseersattningChef.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentHidden(java.awt.event.ComponentEvent evt) {
                jPReseersattningChefComponentHidden(evt);
            }
        });

        jScrollPane12.setName("jScrollPane12"); // NOI18N

        jLiDatumReseChef.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jLiDatumReseChef.setName("jLiDatumReseChef"); // NOI18N
        jScrollPane12.setViewportView(jLiDatumReseChef);

        jScrollPane15.setName("jScrollPane15"); // NOI18N

        jTblUgifterReseChef.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "Typ", "Summa i SEK (inkl. moms)", "Momssats", "Godkänn"
            }
        ) {
            Class[] types = new Class [] {
                java.lang.Object.class, java.lang.Object.class, java.lang.Object.class, java.lang.String.class
            };
            boolean[] canEdit = new boolean [] {
                false, false, false, true
            };

            public Class getColumnClass(int columnIndex) {
                return types [columnIndex];
            }

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        jTblUgifterReseChef.setName("jTblUgifterReseChef"); // NOI18N
        jScrollPane15.setViewportView(jTblUgifterReseChef);
        jTblUgifterReseChef.getColumnModel().getColumn(0).setMinWidth(50);
        jTblUgifterReseChef.getColumnModel().getColumn(0).setMaxWidth(200);
        jTblUgifterReseChef.getColumnModel().getColumn(1).setMinWidth(140);
        jTblUgifterReseChef.getColumnModel().getColumn(1).setMaxWidth(200);
        jTblUgifterReseChef.getColumnModel().getColumn(2).setMinWidth(50);
        jTblUgifterReseChef.getColumnModel().getColumn(2).setMaxWidth(100);

        jTFNamnReseersChef.setEditable(false);
        jTFNamnReseersChef.setText(resourceMap.getString("jTFNamnReseersChef.text")); // NOI18N
        jTFNamnReseersChef.setName("jTFNamnReseersChef"); // NOI18N

        jLblKonsultNamnReseChef.setText(resourceMap.getString("jLblKonsultNamnReseChef.text")); // NOI18N
        jLblKonsultNamnReseChef.setName("jLblKonsultNamnReseChef"); // NOI18N

        jTFLandReseersChef.setEditable(false);
        jTFLandReseersChef.setText(resourceMap.getString("jTFLandReseersChef.text")); // NOI18N
        jTFLandReseersChef.setName("jTFLandReseersChef"); // NOI18N

        jLblLandReseersChef.setText(resourceMap.getString("jLblLandReseersChef.text")); // NOI18N
        jLblLandReseersChef.setName("jLblLandReseersChef"); // NOI18N

        jLblSyfteReseersChef.setText(resourceMap.getString("jLblSyfteReseersChef.text")); // NOI18N
        jLblSyfteReseersChef.setName("jLblSyfteReseersChef"); // NOI18N

        jScrollPane9.setName("jScrollPane9"); // NOI18N

        jTASyfteReseersChef.setColumns(20);
        jTASyfteReseersChef.setRows(5);
        jTASyfteReseersChef.setName("jTASyfteReseersChef"); // NOI18N
        jScrollPane9.setViewportView(jTASyfteReseersChef);

        jLblDatumReseersChef.setText(resourceMap.getString("jLblDatumReseersChef.text")); // NOI18N
        jLblDatumReseersChef.setName("jLblDatumReseersChef"); // NOI18N

        jLblUtgifterReseersChef.setText(resourceMap.getString("jLblUtgifterReseersChef.text")); // NOI18N
        jLblUtgifterReseersChef.setName("jLblUtgifterReseersChef"); // NOI18N

        javax.swing.GroupLayout jPReseersattningChefLayout = new javax.swing.GroupLayout(jPReseersattningChef);
        jPReseersattningChef.setLayout(jPReseersattningChefLayout);
        jPReseersattningChefLayout.setHorizontalGroup(
            jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReseersattningChefLayout.createSequentialGroup()
                .addGroup(jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPReseersattningChefLayout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLblUtgifterReseersChef)
                            .addGroup(jPReseersattningChefLayout.createSequentialGroup()
                                .addGroup(jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(jLblKonsultNamnReseChef, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 35, Short.MAX_VALUE)
                                    .addComponent(jLblSyfteReseersChef)
                                    .addComponent(jLblDatumReseersChef))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addGroup(jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addGroup(jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                        .addComponent(jTFLandReseersChef, javax.swing.GroupLayout.Alignment.LEADING)
                                        .addComponent(jTFNamnReseersChef, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE))
                                    .addGroup(jPReseersattningChefLayout.createSequentialGroup()
                                        .addGap(1, 1, 1)
                                        .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 301, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(436, 436, 436))
                            .addComponent(jLblLandReseersChef)))
                    .addGroup(jPReseersattningChefLayout.createSequentialGroup()
                        .addGap(41, 41, 41)
                        .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, 376, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );
        jPReseersattningChefLayout.setVerticalGroup(
            jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReseersattningChefLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblKonsultNamnReseChef)
                    .addComponent(jTFNamnReseersChef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblLandReseersChef)
                    .addComponent(jTFLandReseersChef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(18, 18, 18)
                .addGroup(jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLblSyfteReseersChef)
                    .addComponent(jScrollPane9, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(jPReseersattningChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLblDatumReseersChef)
                    .addComponent(jScrollPane12, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(6, 6, 6)
                .addComponent(jLblUtgifterReseersChef)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jScrollPane15, javax.swing.GroupLayout.PREFERRED_SIZE, 142, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(138, 138, 138))
        );

        javax.swing.GroupLayout jPReseersattningKantChefLayout = new javax.swing.GroupLayout(jPReseersattningKantChef);
        jPReseersattningKantChef.setLayout(jPReseersattningKantChefLayout);
        jPReseersattningKantChefLayout.setHorizontalGroup(
            jPReseersattningKantChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReseersattningKantChefLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPReseersattningChef, javax.swing.GroupLayout.PREFERRED_SIZE, 512, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(24, Short.MAX_VALUE))
        );
        jPReseersattningKantChefLayout.setVerticalGroup(
            jPReseersattningKantChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReseersattningKantChefLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPReseersattningChef, javax.swing.GroupLayout.PREFERRED_SIZE, 487, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(46, Short.MAX_VALUE))
        );

        jPCardLayoutChef.add(jPReseersattningKantChef, "card3");

        jPReseorderKantChef.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPReseorderKantChef.setName("jPReseorderKantChef"); // NOI18N
        jPReseorderKantChef.setPreferredSize(new java.awt.Dimension(600, 400));
        jPReseorderKantChef.addComponentListener(new java.awt.event.ComponentAdapter() {
            public void componentHidden(java.awt.event.ComponentEvent evt) {
                jPReseorderKantChefComponentHidden(evt);
            }
        });

        jPReseorderChef.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPReseorderChef.border.title"))); // NOI18N
        jPReseorderChef.setName("jPReseorderChef"); // NOI18N
        jPReseorderChef.setPreferredSize(new java.awt.Dimension(50, 50));

        jTFBeloppReseorderChef.setEditable(false);
        jTFBeloppReseorderChef.setText(resourceMap.getString("jTFBeloppReseorderChef.text")); // NOI18N
        jTFBeloppReseorderChef.setName("jTFBeloppReseorderChef"); // NOI18N

        jBtnAvslåReseorderChef.setText(resourceMap.getString("jBtnAvslåReseorderChef.text")); // NOI18N
        jBtnAvslåReseorderChef.setName("jBtnAvslåReseorderChef"); // NOI18N
        jBtnAvslåReseorderChef.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnAvslåReseorderChefActionPerformed(evt);
            }
        });

        jLblSyfteReseorderChef.setText(resourceMap.getString("jLblSyfteReseorderChef.text")); // NOI18N
        jLblSyfteReseorderChef.setName("jLblSyfteReseorderChef"); // NOI18N

        jTFKonsultReseorderChef.setEnabled(false);
        jTFKonsultReseorderChef.setName("jTFKonsultReseorderChef"); // NOI18N

        jLblLandReseorderChef.setText(resourceMap.getString("jLblLandReseorderChef.text")); // NOI18N
        jLblLandReseorderChef.setName("jLblLandReseorderChef"); // NOI18N

        jLblNamnReseorderChef.setText(resourceMap.getString("jLblNamnReseorderChef.text")); // NOI18N
        jLblNamnReseorderChef.setName("jLblNamnReseorderChef"); // NOI18N

        jTFLandReseorderChef.setEnabled(false);
        jTFLandReseorderChef.setName("jTFLandReseorderChef"); // NOI18N

        jScrollPane17.setName("jScrollPane17"); // NOI18N

        jTFSyfteReseorderChef.setColumns(20);
        jTFSyfteReseorderChef.setFont(resourceMap.getFont("jTFSyfteReseorderChef.font")); // NOI18N
        jTFSyfteReseorderChef.setLineWrap(true);
        jTFSyfteReseorderChef.setRows(5);
        jTFSyfteReseorderChef.setWrapStyleWord(true);
        jTFSyfteReseorderChef.setName("jTFSyfteReseorderChef"); // NOI18N
        jScrollPane17.setViewportView(jTFSyfteReseorderChef);

        jLblBeloppReseorderChef.setText(resourceMap.getString("jLblBeloppReseorderChef.text")); // NOI18N
        jLblBeloppReseorderChef.setName("jLblBeloppReseorderChef"); // NOI18N

        jBtnGodkännReseorderChef.setText(resourceMap.getString("jBtnGodkännReseorderChef.text")); // NOI18N
        jBtnGodkännReseorderChef.setName("jBtnGodkännReseorderChef"); // NOI18N
        jBtnGodkännReseorderChef.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnGodkännReseorderChefActionPerformed(evt);
            }
        });

        jLblAnsoktforskottChef.setText(resourceMap.getString("jLblAnsoktforskottChef.text")); // NOI18N
        jLblAnsoktforskottChef.setName("jLblAnsoktforskottChef"); // NOI18N

        jCBForskottReseorderChef.setText(resourceMap.getString("jCBForskottReseorderChef.text")); // NOI18N
        jCBForskottReseorderChef.setEnabled(false);
        jCBForskottReseorderChef.setName("jCBForskottReseorderChef"); // NOI18N

        javax.swing.GroupLayout jPReseorderChefLayout = new javax.swing.GroupLayout(jPReseorderChef);
        jPReseorderChef.setLayout(jPReseorderChefLayout);
        jPReseorderChefLayout.setHorizontalGroup(
            jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReseorderChefLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPReseorderChefLayout.createSequentialGroup()
                        .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPReseorderChefLayout.createSequentialGroup()
                                .addGap(1, 1, 1)
                                .addComponent(jLblNamnReseorderChef))
                            .addComponent(jLblLandReseorderChef)
                            .addComponent(jLblSyfteReseorderChef))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                                .addComponent(jTFKonsultReseorderChef, javax.swing.GroupLayout.Alignment.LEADING)
                                .addComponent(jTFLandReseorderChef, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 167, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPReseorderChefLayout.createSequentialGroup()
                        .addComponent(jLblAnsoktforskottChef)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jCBForskottReseorderChef))
                    .addGroup(jPReseorderChefLayout.createSequentialGroup()
                        .addComponent(jLblBeloppReseorderChef)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jTFBeloppReseorderChef, javax.swing.GroupLayout.PREFERRED_SIZE, 130, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPReseorderChefLayout.createSequentialGroup()
                        .addGap(89, 89, 89)
                        .addComponent(jBtnAvslåReseorderChef)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jBtnGodkännReseorderChef)))
                .addContainerGap(131, Short.MAX_VALUE))
        );
        jPReseorderChefLayout.setVerticalGroup(
            jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPReseorderChefLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTFKonsultReseorderChef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblNamnReseorderChef))
                .addGap(18, 18, 18)
                .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTFLandReseorderChef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblLandReseorderChef))
                .addGap(18, 18, 18)
                .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollPane17, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblSyfteReseorderChef))
                .addGap(22, 22, 22)
                .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblAnsoktforskottChef)
                    .addComponent(jCBForskottReseorderChef))
                .addGap(23, 23, 23)
                .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLblBeloppReseorderChef)
                    .addComponent(jTFBeloppReseorderChef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(30, 30, 30)
                .addGroup(jPReseorderChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBtnAvslåReseorderChef)
                    .addComponent(jBtnGodkännReseorderChef))
                .addContainerGap(136, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPReseorderKantChefLayout = new javax.swing.GroupLayout(jPReseorderKantChef);
        jPReseorderKantChef.setLayout(jPReseorderKantChefLayout);
        jPReseorderKantChefLayout.setHorizontalGroup(
            jPReseorderKantChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 546, Short.MAX_VALUE)
            .addGroup(jPReseorderKantChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPReseorderKantChefLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPReseorderChef, javax.swing.GroupLayout.PREFERRED_SIZE, 386, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(150, Short.MAX_VALUE)))
        );
        jPReseorderKantChefLayout.setVerticalGroup(
            jPReseorderKantChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 544, Short.MAX_VALUE)
            .addGroup(jPReseorderKantChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPReseorderKantChefLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPReseorderChef, javax.swing.GroupLayout.PREFERRED_SIZE, 458, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(75, Short.MAX_VALUE)))
        );

        jPCardLayoutChef.add(jPReseorderKantChef, "card2");

        jPChefArendeKant.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)));
        jPChefArendeKant.setName("jPChefArendeKant"); // NOI18N

        jPNyaArendenChef.setBorder(javax.swing.BorderFactory.createTitledBorder("Nya ärenden"));
        jPNyaArendenChef.setName("jPNyaArendenChef"); // NOI18N

        jScrollReseOrderChef.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jScrollReseOrderChef.border.title"))); // NOI18N
        jScrollReseOrderChef.setName("jScrollReseOrderChef"); // NOI18N

        jLiReseOrderChef.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jLiReseOrderChef.setName("jLiReseOrderChef"); // NOI18N
        jLiReseOrderChef.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLiReseOrderChefValueChanged(evt);
            }
        });
        jScrollReseOrderChef.setViewportView(jLiReseOrderChef);

        jScrollReseersattningChef.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jScrollReseersattningChef.border.title"))); // NOI18N
        jScrollReseersattningChef.setName("jScrollReseersattningChef"); // NOI18N

        jLiReseersattningChef.setModel(new javax.swing.AbstractListModel() {
            String[] strings = { "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" };
            public int getSize() { return strings.length; }
            public Object getElementAt(int i) { return strings[i]; }
        });
        jLiReseersattningChef.setName("jLiReseersattningChef"); // NOI18N
        jLiReseersattningChef.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                jLiReseersattningChefValueChanged(evt);
            }
        });
        jScrollReseersattningChef.setViewportView(jLiReseersattningChef);

        javax.swing.GroupLayout jPNyaArendenChefLayout = new javax.swing.GroupLayout(jPNyaArendenChef);
        jPNyaArendenChef.setLayout(jPNyaArendenChefLayout);
        jPNyaArendenChefLayout.setHorizontalGroup(
            jPNyaArendenChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPNyaArendenChefLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPNyaArendenChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                    .addComponent(jScrollReseersattningChef, javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jScrollReseOrderChef, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 225, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPNyaArendenChefLayout.setVerticalGroup(
            jPNyaArendenChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPNyaArendenChefLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollReseersattningChef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jScrollReseOrderChef, javax.swing.GroupLayout.PREFERRED_SIZE, 141, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(31, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPChefArendeKantLayout = new javax.swing.GroupLayout(jPChefArendeKant);
        jPChefArendeKant.setLayout(jPChefArendeKantLayout);
        jPChefArendeKantLayout.setHorizontalGroup(
            jPChefArendeKantLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPChefArendeKantLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPNyaArendenChef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(92, Short.MAX_VALUE))
        );
        jPChefArendeKantLayout.setVerticalGroup(
            jPChefArendeKantLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPChefArendeKantLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPNyaArendenChef, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(170, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout jPChefLayout = new javax.swing.GroupLayout(jPChef);
        jPChef.setLayout(jPChefLayout);
        jPChefLayout.setHorizontalGroup(
            jPChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPChefLayout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jPChefArendeKant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(1479, Short.MAX_VALUE))
            .addGroup(jPChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPChefLayout.createSequentialGroup()
                    .addGap(391, 391, 391)
                    .addComponent(jPCardLayoutChef, javax.swing.GroupLayout.PREFERRED_SIZE, 548, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(920, Short.MAX_VALUE)))
        );
        jPChefLayout.setVerticalGroup(
            jPChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPChefLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPChefArendeKant, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(147, Short.MAX_VALUE))
            .addGroup(jPChefLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(jPChefLayout.createSequentialGroup()
                    .addContainerGap()
                    .addComponent(jPCardLayoutChef, javax.swing.GroupLayout.PREFERRED_SIZE, 546, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(147, Short.MAX_VALUE)))
        );

        jTpFlikar.addTab(resourceMap.getString("jPChef.TabConstraints.tabTitle"), jPChef); // NOI18N

        javax.swing.GroupLayout mainPanelLayout = new javax.swing.GroupLayout(mainPanel);
        mainPanel.setLayout(mainPanelLayout);
        mainPanelLayout.setHorizontalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTpFlikar, javax.swing.GroupLayout.PREFERRED_SIZE, 1274, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        mainPanelLayout.setVerticalGroup(
            mainPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(mainPanelLayout.createSequentialGroup()
                .addComponent(jTpFlikar, javax.swing.GroupLayout.DEFAULT_SIZE, 654, Short.MAX_VALUE)
                .addContainerGap())
        );

        menuBar.setName("menuBar"); // NOI18N

        fileMenu.setText(resourceMap.getString("fileMenu.text")); // NOI18N
        fileMenu.setName("fileMenu"); // NOI18N

        javax.swing.ActionMap actionMap = org.jdesktop.application.Application.getInstance(desktopapplication1.DesktopApplication1.class).getContext().getActionMap(DesktopApplication1View.class, this);
        exitMenuItem.setAction(actionMap.get("quit")); // NOI18N
        exitMenuItem.setName("exitMenuItem"); // NOI18N
        fileMenu.add(exitMenuItem);

        menuBar.add(fileMenu);

        helpMenu.setText(resourceMap.getString("helpMenu.text")); // NOI18N
        helpMenu.setName("helpMenu"); // NOI18N

        aboutMenuItem.setAction(actionMap.get("showAboutBox")); // NOI18N
        aboutMenuItem.setName("aboutMenuItem"); // NOI18N
        helpMenu.add(aboutMenuItem);

        menuBar.add(helpMenu);

        statusPanel.setName("statusPanel"); // NOI18N

        statusPanelSeparator.setName("statusPanelSeparator"); // NOI18N

        statusMessageLabel.setName("statusMessageLabel"); // NOI18N

        statusAnimationLabel.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        statusAnimationLabel.setName("statusAnimationLabel"); // NOI18N

        progressBar.setName("progressBar"); // NOI18N

        javax.swing.GroupLayout statusPanelLayout = new javax.swing.GroupLayout(statusPanel);
        statusPanel.setLayout(statusPanelLayout);
        statusPanelLayout.setHorizontalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(statusPanelSeparator, javax.swing.GroupLayout.DEFAULT_SIZE, 1294, Short.MAX_VALUE)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(statusMessageLabel)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 1124, Short.MAX_VALUE)
                .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(statusAnimationLabel)
                .addContainerGap())
        );
        statusPanelLayout.setVerticalGroup(
            statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(statusPanelLayout.createSequentialGroup()
                .addComponent(statusPanelSeparator, javax.swing.GroupLayout.PREFERRED_SIZE, 2, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addGroup(statusPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(statusMessageLabel)
                    .addComponent(statusAnimationLabel)
                    .addComponent(progressBar, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(3, 3, 3))
        );

        jScrollPane13.setName("jScrollPane10"); // NOI18N

        jTextArea1.setColumns(20);
        jTextArea1.setRows(5);
        jTextArea1.setName("jTextArea1"); // NOI18N
        jScrollPane13.setViewportView(jTextArea1);

        jDreseOrder.setBounds(new java.awt.Rectangle(100, 100, 550, 370));
        jDreseOrder.setModal(true);
        jDreseOrder.setName("jDreseOrder"); // NOI18N

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Konsult namn"));
        jPanel1.setName("jPanel1"); // NOI18N

        jTxtFieldkonsultNamn.setName("jTxtFieldkonsultNamn"); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jTxtFieldkonsultNamn, javax.swing.GroupLayout.PREFERRED_SIZE, 144, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(96, Short.MAX_VALUE))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addComponent(jTxtFieldkonsultNamn, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel2.border.title"))); // NOI18N
        jPanel2.setName("jPanel2"); // NOI18N

        jScrollPane14.setName("jScrollPane14"); // NOI18N

        jTextArea2.setColumns(20);
        jTextArea2.setRows(5);
        jTextArea2.setName("jTextArea2"); // NOI18N
        jScrollPane14.setViewportView(jTextArea2);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 208, Short.MAX_VALUE)
                .addContainerGap())
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane14, javax.swing.GroupLayout.DEFAULT_SIZE, 237, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel3.border.title"))); // NOI18N
        jPanel3.setName("jPanel3"); // NOI18N

        jDlgReseOrderComboBoxLand.setName("jDlgReseOrderComboBoxLand"); // NOI18N

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jDlgReseOrderComboBoxLand, javax.swing.GroupLayout.PREFERRED_SIZE, 146, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(94, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addComponent(jDlgReseOrderComboBoxLand, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel5.border.title"))); // NOI18N
        jPanel5.setName("jPanel5"); // NOI18N

        jTxtFieldDatumTill.setText(resourceMap.getString("jTxtFieldDatumTill.text")); // NOI18N
        jTxtFieldDatumTill.setName("jTxtFieldDatumTill"); // NOI18N

        jLabel7.setText(resourceMap.getString("jLabel7.text")); // NOI18N
        jLabel7.setName("jLabel7"); // NOI18N

        jTxtFieldDatumFran.setText(resourceMap.getString("jTxtFieldDatumFran.text")); // NOI18N
        jTxtFieldDatumFran.setName("jTxtFieldDatumFran"); // NOI18N

        jLabel8.setText(resourceMap.getString("jLabel8.text")); // NOI18N
        jLabel8.setName("jLabel8"); // NOI18N

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel7)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTxtFieldDatumFran, javax.swing.GroupLayout.PREFERRED_SIZE, 76, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 26, Short.MAX_VALUE)
                .addComponent(jLabel8)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(jTxtFieldDatumTill, javax.swing.GroupLayout.PREFERRED_SIZE, 72, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTxtFieldDatumFran, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jTxtFieldDatumTill, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel7)
                    .addComponent(jLabel8))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder(resourceMap.getString("jPanel6.border.title"))); // NOI18N
        jPanel6.setName("jPanel6"); // NOI18N

        jCBJaReseorder.setText(resourceMap.getString("jCBJaReseorder.text")); // NOI18N
        jCBJaReseorder.setName("jCBJaReseorder"); // NOI18N
        jCBJaReseorder.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jCBJaReseorderActionPerformed(evt);
            }
        });

        jTxtFieldBeloppReseorder.setText(resourceMap.getString("jTxtFieldBeloppReseorder.text")); // NOI18N
        jTxtFieldBeloppReseorder.setName("jTxtFieldBeloppReseorder"); // NOI18N
        jTxtFieldBeloppReseorder.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jTxtFieldBeloppReseorderActionPerformed(evt);
            }
        });

        jLabel9.setText(resourceMap.getString("jLabel9.text")); // NOI18N
        jLabel9.setName("jLabel9"); // NOI18N

        javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
        jPanel6.setLayout(jPanel6Layout);
        jPanel6Layout.setHorizontalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel6Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jCBJaReseorder)
                    .addGroup(jPanel6Layout.createSequentialGroup()
                        .addComponent(jLabel9)
                        .addGap(10, 10, 10)
                        .addComponent(jTxtFieldBeloppReseorder, javax.swing.GroupLayout.PREFERRED_SIZE, 86, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap(106, Short.MAX_VALUE))
        );
        jPanel6Layout.setVerticalGroup(
            jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel6Layout.createSequentialGroup()
                .addComponent(jCBJaReseorder)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 7, Short.MAX_VALUE)
                .addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel9)
                    .addComponent(jTxtFieldBeloppReseorder, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        jBtnOk.setText(resourceMap.getString("jBtnOk.text")); // NOI18N
        jBtnOk.setName("jBtnOk"); // NOI18N

        jBtnClose.setText(resourceMap.getString("jBtnClose.text")); // NOI18N
        jBtnClose.setName("jBtnClose"); // NOI18N
        jBtnClose.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBtnCloseActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jDreseOrderLayout = new javax.swing.GroupLayout(jDreseOrder.getContentPane());
        jDreseOrder.getContentPane().setLayout(jDreseOrderLayout);
        jDreseOrderLayout.setHorizontalGroup(
            jDreseOrderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDreseOrderLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDreseOrderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDreseOrderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jPanel1, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDreseOrderLayout.createSequentialGroup()
                        .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addGroup(jDreseOrderLayout.createSequentialGroup()
                        .addComponent(jPanel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)))
                .addGroup(jDreseOrderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jDreseOrderLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addContainerGap(24, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jDreseOrderLayout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jBtnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 70, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jBtnClose, javax.swing.GroupLayout.PREFERRED_SIZE, 73, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(29, 29, 29))))
        );
        jDreseOrderLayout.setVerticalGroup(
            jDreseOrderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jDreseOrderLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jDreseOrderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addGroup(javax.swing.GroupLayout.Alignment.LEADING, jDreseOrderLayout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 53, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 48, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
                        .addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(17, 17, 17)
                .addGroup(jDreseOrderLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jBtnClose, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jBtnOk, javax.swing.GroupLayout.PREFERRED_SIZE, 27, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap())
        );

        JDForskottPopupAdmin.setBounds(new java.awt.Rectangle(0, 0, 400, 300));
        JDForskottPopupAdmin.setName("JDForskottPopupAdmin"); // NOI18N

        jTFKonsultnamnForskottAdmin.setText(resourceMap.getString("jTFKonsultnamnForskottAdmin.text")); // NOI18N
        jTFKonsultnamnForskottAdmin.setName("jTFKonsultnamnForskottAdmin"); // NOI18N

        jTFSyfteForskottAdmin.setName("jTFSyfteForskottAdmin"); // NOI18N

        jLblnamnAdmin.setText(resourceMap.getString("jLblnamnAdmin.text")); // NOI18N
        jLblnamnAdmin.setName("jLblnamnAdmin"); // NOI18N

        jLblLandAdmin.setText(resourceMap.getString("jLblLandAdmin.text")); // NOI18N
        jLblLandAdmin.setName("jLblLandAdmin"); // NOI18N

        JBtnSkickaForskottAdmin.setText(resourceMap.getString("JBtnSkickaForskottAdmin.text")); // NOI18N
        JBtnSkickaForskottAdmin.setName("JBtnSkickaForskottAdmin"); // NOI18N

        jLbSyfteAdmin.setText(resourceMap.getString("jLbSyfteAdmin.text")); // NOI18N
        jLbSyfteAdmin.setName("jLbSyfteAdmin"); // NOI18N

        jScrollPane11.setName("jScrollPane11"); // NOI18N

        jTASyfteForskottAdmin.setColumns(20);
        jTASyfteForskottAdmin.setRows(5);
        jTASyfteForskottAdmin.setName("jTASyfteForskottAdmin"); // NOI18N
        jScrollPane11.setViewportView(jTASyfteForskottAdmin);

        jTFBeloppForskottAdmin.setText(resourceMap.getString("jTFBeloppForskottAdmin.text")); // NOI18N
        jTFBeloppForskottAdmin.setName("jTFBeloppForskottAdmin"); // NOI18N

        jLabel12.setText(resourceMap.getString("jLabel12.text")); // NOI18N
        jLabel12.setName("jLabel12"); // NOI18N

        javax.swing.GroupLayout JDForskottPopupAdminLayout = new javax.swing.GroupLayout(JDForskottPopupAdmin.getContentPane());
        JDForskottPopupAdmin.getContentPane().setLayout(JDForskottPopupAdminLayout);
        JDForskottPopupAdminLayout.setHorizontalGroup(
            JDForskottPopupAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JDForskottPopupAdminLayout.createSequentialGroup()
                .addContainerGap()
                .addGroup(JDForskottPopupAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                    .addComponent(JBtnSkickaForskottAdmin)
                    .addGroup(JDForskottPopupAdminLayout.createSequentialGroup()
                        .addGroup(JDForskottPopupAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel12)
                            .addComponent(jLbSyfteAdmin)
                            .addComponent(jLblnamnAdmin)
                            .addComponent(jLblLandAdmin))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(JDForskottPopupAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jTFBeloppForskottAdmin, javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jTFSyfteForskottAdmin, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(jTFKonsultnamnForskottAdmin, javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
                            .addComponent(jScrollPane11))))
                .addContainerGap(178, Short.MAX_VALUE))
        );
        JDForskottPopupAdminLayout.setVerticalGroup(
            JDForskottPopupAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(JDForskottPopupAdminLayout.createSequentialGroup()
                .addGap(40, 40, 40)
                .addGroup(JDForskottPopupAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTFKonsultnamnForskottAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblnamnAdmin))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(JDForskottPopupAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTFSyfteForskottAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLblLandAdmin))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(JDForskottPopupAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLbSyfteAdmin)
                    .addComponent(jScrollPane11, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(JDForskottPopupAdminLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jTFBeloppForskottAdmin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel12))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 17, Short.MAX_VALUE)
                .addComponent(JBtnSkickaForskottAdmin)
                .addGap(36, 36, 36))
        );

        setComponent(mainPanel);
        setMenuBar(menuBar);
        setStatusBar(statusPanel);
    }// </editor-fold>//GEN-END:initComponents

private void jCbLandKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCbLandKonsultActionPerformed
    for (int i = 0; i < jCbLandKonsult.getItemCount(); i++) {
        if (jCbLandKonsult.getSelectedIndex() == i) {
            jCbValutaKonsult.setSelectedIndex(i);
        }
    }
}//GEN-LAST:event_jCbLandKonsultActionPerformed

private void jBtnSparaResaKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnSparaResaKonsultActionPerformed
// TODO add your handling code here:
    JOptionPane.showMessageDialog(null, "Ej implementerad!");
}//GEN-LAST:event_jBtnSparaResaKonsultActionPerformed

private void jBtnSparaTraktamenteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnSparaTraktamenteActionPerformed
// TODO add your handling code here:
    JOptionPane.showMessageDialog(null, "Ej implementerad!");
}//GEN-LAST:event_jBtnSparaTraktamenteActionPerformed

private void jBtnSparaUtgiftKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnSparaUtgiftKonsultActionPerformed
// TODO add your handling code here:
    JOptionPane.showMessageDialog(null, "Ej implementerad!");
}//GEN-LAST:event_jBtnSparaUtgiftKonsultActionPerformed

private void jCbSemesterKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCbSemesterKonsultActionPerformed
// TODO add your handling code here:
    /*jLabel1.setEnabled(true);
    jChkFrukostKonsult.setEnabled(true);
    jChkLunchKonsult.setEnabled(true);
    jChkMiddagKonsult.setEnabled(true);
     * 
     */
    setTraktamenteEditable(true);
}//GEN-LAST:event_jCbSemesterKonsultActionPerformed

private void jCbUtgiftstypKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCbUtgiftstypKonsultActionPerformed
    if (jCbUtgiftstypKonsult.getSelectedIndex() == 5) {
        jLblAntalMilKonsult.setEnabled(true);
        jTfAntalMilKonsult.setEnabled(true);
        jTfAntalMilKonsult.setEditable(true);
        jLblMilersattningKonsult.setEnabled(true);
        jTfMilersattningKonsult.setEnabled(true);
        jBtnAntalMilOKKonsult.setEnabled(true);
        jLblErsättningKonsult.setEnabled(true);
    }
    if (jCbUtgiftstypKonsult.getSelectedIndex() != 5) {
        jLblAntalMilKonsult.setEnabled(false);
        jTfAntalMilKonsult.setEnabled(false);
        jTfAntalMilKonsult.setEditable(false);
        jTfAntalMilKonsult.setText("");
        jLblMilersattningKonsult.setEnabled(false);
        jTfMilersattningKonsult.setEnabled(false);
        jBtnAntalMilOKKonsult.setEnabled(false);
        jLblErsättningKonsult.setEnabled(false);
    }

}//GEN-LAST:event_jCbUtgiftstypKonsultActionPerformed

private void jBtnAntalMilOKKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnAntalMilOKKonsultActionPerformed
//Här ska det valideras!
    double antalMil = Double.parseDouble(jTfAntalMilKonsult.getText());
    double summa = antalMil * 18.50;
    jTfMilersattningKonsult.setText("" + summa + " kr.");
}//GEN-LAST:event_jBtnAntalMilOKKonsultActionPerformed

private void jLstDagarKonsultFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jLstDagarKonsultFocusLost
}//GEN-LAST:event_jLstDagarKonsultFocusLost

private void jLstDagarKonsultValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLstDagarKonsultValueChanged
    Dag dag = (Dag) jLstDagarKonsult.getSelectedValue();setDaginfoEditable(false);
    
    if (!jLstDagarKonsult.isSelectionEmpty()) {
        //Resa resa = (Resa) jLstDagarKonsult.getSelectedValue();
        jLstUtgifterKonsult.clearSelection();
        setValAvUtgiftEditable(true);
        //reloadLandResaDag(dag.getReseId());
        reloadUtgifter(dag.getDagId().toString());
        jTfDaginfoDatumKonsult.setText(dag.getDatum());
         jCbSemesterKonsult.setSelected(false);
         
/*         if(utgifter.getKvitto() == 0){
                jCbKvittoKonsult.setSelected(true);
            }
            else{
                jCbKvittoKonsult.setSelected(false);
                
            }
          * 
          */
        
        
    } else {
        //jLstUtgifterKonsult.clearSelection();
        setValAvUtgiftEditable(false);
        lmLstUtgifterKonsult.clear();
        jTfDaginfoDatumKonsult.setText("");
        jCbDaginfoLandKonsult.setSelectedIndex(0);
        jCbSemesterKonsult.setSelected(false);
        jChkFrukostKonsult.setSelected(false);
        jChkLunchKonsult.setSelected(false);
        jChkMiddagKonsult.setSelected(false);
    }
}//GEN-LAST:event_jLstDagarKonsultValueChanged

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton2ActionPerformed
// TODO add your handling code here:
    //JOptionPane.showMessageDialog(null, "Ej implementerad!");
    jLstReggadeResorKonsult.clearSelection();
    jLstDagarKonsult.clearSelection();
    jLstUtgifterKonsult.clearSelection();
    setReseinfoEditable(true);
    lmLandResa.clear();
    jTaSyfteKonsult.setText("");
    jTfAvresaDatumKonsult.setText("");
    jTfHemresaDatumKonsult.setText("");
    jCbKontoKonsult.setSelectedIndex(0);
}//GEN-LAST:event_jButton2ActionPerformed

private void jBtnLaggTillLandKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnLaggTillLandKonsultActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jBtnLaggTillLandKonsultActionPerformed

private void jBtnNyDagKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnNyDagKonsultActionPerformed
    jLstDagarKonsult.clearSelection();
    setDaginfoEditable(true);
    setValAvUtgiftEditable(false);
    lmLstUtgifterKonsult.clear();
    jTfDaginfoDatumKonsult.setText("");
    jCbDaginfoLandKonsult.setSelectedIndex(0);
    jCbSemesterKonsult.setSelected(false);
    jChkFrukostKonsult.setSelected(false);
    jChkLunchKonsult.setSelected(false);
    jChkMiddagKonsult.setSelected(false);
    // TODO add your handling code here:
    //JOptionPane.showMessageDialog(null, "Ej implementerad!");
}//GEN-LAST:event_jBtnNyDagKonsultActionPerformed

private void jLstReggadeResorKonsultValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLstReggadeResorKonsultValueChanged
    setReseinfoEditable(false);
    Resa resa = (Resa) jLstReggadeResorKonsult.getSelectedValue();
    
    if (!jLstReggadeResorKonsult.isSelectionEmpty()) {
        reloadLand();
        jCbLandKonsult.setSelectedIndex(0);
        jCbKontoKonsult.setSelectedIndex(0);
        setResedagarEditable(true);
        setDaginfoEditable(false);
        jLstDagarKonsult.clearSelection();
        reloadDagarValdResa(resa.getReseId());
        jTfAvresaDatumKonsult.setText(resa.getStartDatum());
        jTfHemresaDatumKonsult.setText(resa.getSlutDatum());
        jTaSyfteKonsult.setText(resa.getSyfte());
        jCbKontoKonsult.setSelectedItem(resa.getKontoNr());
        
        if(resa != null)
             reloadDagarValdResa(resa.getReseId());
             reloadLandResa(resa.getReseId());
         // Uppdatera listan över dagar för den valda resan
      }
   else {
        lmLstDagarKonsult.clear();
        setResedagarEditable(false);
    }
    
}//GEN-LAST:event_jLstReggadeResorKonsultValueChanged

     
    
private void jLstReggadeResorKonsultFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jLstReggadeResorKonsultFocusLost
//setResedagarEditable(false);
}//GEN-LAST:event_jLstReggadeResorKonsultFocusLost

private void jLstReggadeResorKonsultFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jLstReggadeResorKonsultFocusGained
//setResedagarEditable(true);
}//GEN-LAST:event_jLstReggadeResorKonsultFocusGained

private void jBtnNyUtgiftKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnNyUtgiftKonsultActionPerformed
    setUtgifterEditable(true);
    jTaUtgiftsBeskrivningKonsult.setText("");
    jCbUtgiftstypKonsult.setSelectedIndex(0);             
    jTfBeloppKonsult.setText("");
    jCbValutaKonsult.setSelectedIndex(0);        
    jCbMomsKonsult.setSelectedIndex(0);
    jCbKvittoKonsult.setSelected(false);
    jTfAntalMilKonsult.setText("");
}//GEN-LAST:event_jBtnNyUtgiftKonsultActionPerformed

private void jLstUtgifterKonsultValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLstUtgifterKonsultValueChanged
    Utgifter utgifter = (Utgifter) jLstUtgifterKonsult.getSelectedValue();
    
   
   
    if (!jLstUtgifterKonsult.isSelectionEmpty()) {
        setUtgiftIfnoEditable(true);
        setUtgifterEditable(false);
        String belopp = Integer.toString(utgifter.getBelopp());
        double mil = 18.50;
        int Mil = (int)mil;
        jTaUtgiftsBeskrivningKonsult.setText(utgifter.getBeskrivning());
        jCbUtgiftstypKonsult.setSelectedItem(utgifter.getKategori());             
        jTfBeloppKonsult.setText(belopp);
        jCbValutaKonsult.setSelectedItem(utgifter.getValuta());        
        jCbMomsKonsult.setSelectedItem(utgifter.getMoms());
            if(utgifter.getKvitto() == 0){
                jCbKvittoKonsult.setSelected(true);
            }
            else{
                jCbKvittoKonsult.setSelected(false);
                
            }
         int summa = utgifter.getBelopp()/Mil;
         String sum = Integer.toString(summa);
         jTfAntalMilKonsult.setText(sum);
    }
    else{
        setUtgifterEditable(false);
       jTaUtgiftsBeskrivningKonsult.setText("");
        jCbUtgiftstypKonsult.setSelectedIndex(0);             
        jTfBeloppKonsult.setText("");
        jCbValutaKonsult.setSelectedIndex(0);        
        jCbMomsKonsult.setSelectedIndex(0);
        jCbKvittoKonsult.setSelected(false);
        jTfAntalMilKonsult.setText("");
        }
}//GEN-LAST:event_jLstUtgifterKonsultValueChanged

private void jBtnRaderaAnvandareAdminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnRaderaAnvandareAdminActionPerformed
     if(!validering.selected(jLiAnvandareAdmin))
    {
        JOptionPane.showMessageDialog(null,"Markera vilken användare som du vill radera!");
        return;
    }
    JOptionPane.showMessageDialog(null, "Är du säker på att du vill radera?");
}//GEN-LAST:event_jBtnRaderaAnvandareAdminActionPerformed

private void jBtnSparaAnvandareAdminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnSparaAnvandareAdminActionPerformed
    if(!validering.tomtTextField(jTFAnvandarnamnAdmin)
       && !validering.tomtTextField(jTFPersonnummerAnvandareAdmin)
       && !validering.tomtTextField(jTFEpostadressAdmin)
       && !validering.tomtTextField(jTFRollAnvandareAdmin)
       && !validering.tomtTextField(jTFLosenordAdmin)
       )
           {
               JOptionPane.showMessageDialog(null,"Fyll i användaruppgifter.");
               return;
           }
   
  
    if(!validering.tomtTextField(jTFAnvandarnamnAdmin))
           {
               JOptionPane.showMessageDialog(null,"Namn är ej infyllt!");
               return;
           }
    
    if(!validering.tomtTextField(jTFRollAnvandareAdmin))
           {
               JOptionPane.showMessageDialog(null,"Roll är ej infyllt!");
               return;
           }
    if(!validering.tomtTextField(jTFLosenordAdmin))
           {
               JOptionPane.showMessageDialog(null,"Lösenord är ej infyllt!");
               return;
           }
    if (jLiAnvandareAdmin.isSelectionEmpty()) {
        laggTillAnvandareAdmin();
    }
    if (!jLiAnvandareAdmin.isSelectionEmpty()) {
        redigeraAnvandare();
    }
    reloadAnvandareAdmin();
    setEditableAnvandare(false); 
}//GEN-LAST:event_jBtnSparaAnvandareAdminActionPerformed

private void jBtnRaderaUppdragAdminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnRaderaUppdragAdminActionPerformed
     if(!validering.selected(jLUppdragAdmin))
    {
        JOptionPane.showMessageDialog(null,"Markera Uppddrag som du vill radera!");
        return;
    }
    
    JOptionPane.showMessageDialog(null, "Är du säker på att du vill radera?");
}//GEN-LAST:event_jBtnRaderaUppdragAdminActionPerformed


private void jBtnSparaUppdragAdminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnSparaUppdragAdminActionPerformed
    if(!validering.tomtTextField(jTFUppdragsnamnAdmin) && 
            !validering.tomtTextField(jTFKontonummerAdmin))
{
    JOptionPane.showMessageDialog(null, "Ange Uppdragsnamn och kontonummer!");
    return;
} 
    else if(!validering.tomtTextField(jTFUppdragsnamnAdmin)){
    JOptionPane.showMessageDialog(null, "Uppdradsnamn är ej infyllt");
    return;
    }
    
if(!validering.tomtTextField(jTFKontonummerAdmin))
{
    JOptionPane.showMessageDialog(null, "Kontonummer är ej infyllt!");
    return;
}  
    
    
    if (jLUppdragAdmin.isSelectionEmpty()) {
        läggTillUppdragAdmin();
    }
    if (!jLUppdragAdmin.isSelectionEmpty()) {
        redigeraUppdragAdmin();
    }
    reloadUppdragAdmin();
    setEditableUppdrag(false); 
     
}//GEN-LAST:event_jBtnSparaUppdragAdminActionPerformed

private void jBtnReseOrderKonsultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnReseOrderKonsultActionPerformed

    // TODO add your handling code here:
    jTxtFieldBeloppReseorder.setEnabled(false);
    jDreseOrder.setVisible(true);
    
}//GEN-LAST:event_jBtnReseOrderKonsultActionPerformed

private void btnCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCloseActionPerformed
    jDreseOrder.setVisible(false);
}//GEN-LAST:event_btnCloseActionPerformed

private void jBtnCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnCloseActionPerformed
jDreseOrder.setVisible(false);// TODO add your handling code here:
}//GEN-LAST:event_jBtnCloseActionPerformed

private void jCBJaReseorderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jCBJaReseorderActionPerformed
if(jCBJaReseorder.isSelected())
{
    jTxtFieldBeloppReseorder.setEnabled(true);
    
}
else {
    jTxtFieldBeloppReseorder.setEnabled(false);
}
        //TODO add your handling code here:
}//GEN-LAST:event_jCBJaReseorderActionPerformed

private void jTxtFieldBeloppReseorderActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jTxtFieldBeloppReseorderActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_jTxtFieldBeloppReseorderActionPerformed

private void jPReseersattningChefComponentHidden(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_jPReseersattningChefComponentHidden

}//GEN-LAST:event_jPReseersattningChefComponentHidden

private void jPReseorderKantChefComponentHidden(java.awt.event.ComponentEvent evt) {//GEN-FIRST:event_jPReseorderKantChefComponentHidden

}//GEN-LAST:event_jPReseorderKantChefComponentHidden

private void jLiReseersattningChefValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLiReseersattningChefValueChanged

if (!jLiReseersattningChef.isSelectionEmpty()){
    jPReseersattningChef.setVisible(true);
    jLiReseOrderChef.clearSelection();
    
}
else {
    jPReseersattningChef.setVisible(false);
}
}//GEN-LAST:event_jLiReseersattningChefValueChanged

private void jLiReseOrderChefValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLiReseOrderChefValueChanged
if (!jLiReseOrderChef.isSelectionEmpty()){
   jPReseorderKantChef.setVisible(true);
   jPReseorderChef.setVisible(true);
   jPReseersattningChef.setVisible(false);
   jPReseersattningKantChef.setVisible(false);
   jLiReseersattningChef.clearSelection();
   
   Reseorder reseorder = (Reseorder) jLiReseOrderChef.getSelectedValue();
        try{
            String namn = idb.fetchSingle("select namn from anvandare where persnr = '" 
                    + reseorder.getPersonnummer() + "'");    
            jTFKonsultReseorderChef.setText(namn);
        }
        catch(Exception e){
            JOptionPane.showMessageDialog(null, e.getMessage(), "Nu gick det fel!", JOptionPane.ERROR_MESSAGE);
        }
            jTFLandReseorderChef.setText(reseorder.getLand());
            jTFSyfteReseorderChef.setText(reseorder.getSyfte());
            
        if (reseorder.getForskott().equals(""))
        {
            jTFBeloppReseorderChef.setText("");
            jCBForskottReseorderChef.setSelected(false);
        
        }
        else
        {
            jCBForskottReseorderChef.setSelected(true);
            jTFBeloppReseorderChef.setText(reseorder.getForskott());
        }
}
else {
    jPReseorderKantChef.setVisible(false);
    jPReseorderChef.setVisible(false);
    jPReseersattningChef.setVisible(true);
    jPReseersattningKantChef.setVisible(true);
}
    
        

}//GEN-LAST:event_jLiReseOrderChefValueChanged

private void jLiAnvandareAdminValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLiAnvandareAdminValueChanged
// TODO add your handling code here:
    if(!jLiAnvandareAdmin.isSelectionEmpty()) {
        jLGodkändaPosterAdmin.clearSelection();
        jLUppdragAdmin.clearSelection();
        Anvandare anvandare = (Anvandare) jLiAnvandareAdmin.getSelectedValue();
        jTFAnvandarnamnAdmin.setText(anvandare.getnamn());
        jTFPersonnummerAnvandareAdmin.setText(anvandare.getpersonNr());
        jTFEpostadressAdmin.setText(anvandare.getepost());
        jTFRollAnvandareAdmin.setText(anvandare.getroll());
        jTFLosenordAdmin.setText(anvandare.getlosenord());
        jBtnLäggTillNyAnvAdmin.setEnabled(true);
        setEditableAnvandare(false); 
        setEditableUppdrag(false);
        rensaUppdragAdmin();
    }
    
    
}//GEN-LAST:event_jLiAnvandareAdminValueChanged

private void jLGodkändaPosterAdminValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLGodkändaPosterAdminValueChanged
    if (!jLGodkändaPosterAdmin.isSelectionEmpty()){
        jLiAnvandareAdmin.clearSelection();
        jLUppdragAdmin.clearSelection();
        rensaAnvandareAdmin();
        setEditableAnvandare(false); 
        setEditableUppdrag(false);
        rensaUppdragAdmin();
    }

}//GEN-LAST:event_jLGodkändaPosterAdminValueChanged

private void jLUppdragAdminValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLUppdragAdminValueChanged
if (!jLUppdragAdmin.isSelectionEmpty()){
        jLiAnvandareAdmin.clearSelection();
        jLGodkändaPosterAdmin.clearSelection();
        rensaAnvandareAdmin();
        setEditableAnvandare(false); 
        
        
        Uppdrag uppdrag = (Uppdrag) jLUppdragAdmin.getSelectedValue();
        jTFUppdragsnamnAdmin.setText(uppdrag.getUppdragsNamn());
        jTFKontonummerAdmin.setText(Integer.toString(uppdrag.getKontoNr()));
        setEditableUppdrag(false);
    }
}//GEN-LAST:event_jLUppdragAdminValueChanged

private void jBtnLäggTillNyAnvAdminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnLäggTillNyAnvAdminActionPerformed
        rensaAnvandareAdmin(); 
        jTFAnvandarnamnAdmin.requestFocusInWindow();
        jBtnLäggTillNyAnvAdmin.setEnabled(false);
        setEditableAnvandare(true); 
}//GEN-LAST:event_jBtnLäggTillNyAnvAdminActionPerformed

private void jBtnRedigeraAnvändareAdminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnRedigeraAnvändareAdminActionPerformed
if(!validering.selected(jLiAnvandareAdmin))
    {
        JOptionPane.showMessageDialog(null,"Markera vilken användare som du vill redigera.");
        return;
    }
    if (!jLiAnvandareAdmin.isSelectionEmpty()) {
        setEditableAnvandare(true); 
        jTFPersonnummerAnvandareAdmin.setEditable(false);
    }
}//GEN-LAST:event_jBtnRedigeraAnvändareAdminActionPerformed

private void jBtnRedigeraUppdragAdminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnRedigeraUppdragAdminActionPerformed
if(!validering.selected(jLUppdragAdmin))
    {
        JOptionPane.showMessageDialog(null,"Markera Uppddrag som du vill radera!");
        return;
    }
    setEditableUppdrag(true);
    jTFKontonummerAdmin.setEditable(false);
}//GEN-LAST:event_jBtnRedigeraUppdragAdminActionPerformed

private void jBtnLaggTillNyUppdragAdminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnLaggTillNyUppdragAdminActionPerformed
    rensaUppdragAdmin();
    setEditableUppdrag(true);
    jTFUppdragsnamnAdmin.requestFocusInWindow();

}//GEN-LAST:event_jBtnLaggTillNyUppdragAdminActionPerformed


private void jLstLandResaKonsultValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLstLandResaKonsultValueChanged
// TODO add your handling code here:
  
}//GEN-LAST:event_jLstLandResaKonsultValueChanged


private void jBtnGodkännReseorderChefActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnGodkännReseorderChefActionPerformed

   godkannReseOrderChef(); 
   reloadReseordrarChef();
   jPReseorderKantChef.setVisible(false);
   jPReseorderChef.setVisible(false);
   jPReseersattningChef.setVisible(false);
   jPReseersattningKantChef.setVisible(false);
}//GEN-LAST:event_jBtnGodkännReseorderChefActionPerformed

private void jBtnAvslåReseorderChefActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnAvslåReseorderChefActionPerformed
// TODO add your handling code here:
    JOptionPane.showMessageDialog(null, "Ännu ej implementerad - men om den vore det så skulle den här "
            + "skicka tillbaks ordern till konsulten. ");

 
}//GEN-LAST:event_jBtnAvslåReseorderChefActionPerformed

private void jBtnVisaInfoforskottrAdminActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBtnVisaInfoforskottrAdminActionPerformed
 if (!jLiForskottAdmin.isSelectionEmpty()) {
    JDForskottPopupAdmin.setVisible(true);
    laddaForskottsDialog();
    jBtnVisaInfoforskottrAdmin.setEnabled(true);
 }
}//GEN-LAST:event_jBtnVisaInfoforskottrAdminActionPerformed

private void jLiForskottAdminValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_jLiForskottAdminValueChanged

    if (!jLiForskottAdmin.isSelectionEmpty()) {
    jLGodkändaPosterAdmin.clearSelection();
    jLiAnvandareAdmin.clearSelection();
        jLUppdragAdmin.clearSelection();
                
        rensaAnvandareAdmin();
        setEditableAnvandare(false); 
        setEditableUppdrag(false);
        rensaUppdragAdmin();
    }
}//GEN-LAST:event_jLiForskottAdminValueChanged
 
private void rensaUppdragAdmin() {
        jTFUppdragsnamnAdmin.setText("");
        jTFKontonummerAdmin.setText("");
        jLUppdragAdmin.clearSelection();
}
private void setEditableUppdrag(boolean redigera){
        jTFUppdragsnamnAdmin.setEditable(redigera);
        jTFKontonummerAdmin.setEditable(redigera);
}
private void rensaAnvandareAdmin() {
    jTFAnvandarnamnAdmin.setText("");
        jTFPersonnummerAnvandareAdmin.setText("");
        jTFEpostadressAdmin.setText("");
        jTFRollAnvandareAdmin.setText("");
        jTFLosenordAdmin.setText("");
        jLiAnvandareAdmin.clearSelection();
}
private void setEditableAnvandare(boolean redigera) {
    jTFAnvandarnamnAdmin.setEditable(redigera);
        jTFPersonnummerAnvandareAdmin.setEditable(redigera);
        jTFEpostadressAdmin.setEditable(redigera);
        jTFRollAnvandareAdmin.setEditable(redigera);
        jTFLosenordAdmin.setEditable(redigera);
}

private void laggTillAnvandareAdmin()
{
    Anvandare anvandare = new Anvandare();
    anvandare.setnamn(jTFAnvandarnamnAdmin.getText());
    anvandare.setpersonNr(jTFPersonnummerAnvandareAdmin.getText());
    anvandare.setepost(jTFEpostadressAdmin.getText());
    anvandare.setlosenord(jTFLosenordAdmin.getText());
    anvandare.setroll(jTFRollAnvandareAdmin.getText());
    try {
    idb.insert("INSERT INTO ANVANDARE (PERSNR, NAMN, EPOST, LOSENORD, ROLL) "
                    + "VALUES ( " + anvandare.getpersonNr() 
                    + ", '" + anvandare.getnamn() + "', " +  (null) + ", '" 
                    + anvandare.getlosenord() + "', '" + anvandare.getroll() + "')");
    JOptionPane.showMessageDialog(null, jTFAnvandarnamnAdmin.getText() + " har lagts till.");
    rensaAnvandareAdmin(); 
    jBtnLäggTillNyAnvAdmin.setEnabled(true);
    reloadAnvandareAdmin();
    }
    catch(InformatikException exc){
                JOptionPane.showMessageDialog(null, exc.getMessage(), 
                    "Nu var det något som gick fel!", JOptionPane.ERROR_MESSAGE);
        }
}
private void redigeraAnvandare(){
    try{
        idb.update("update anvandare set namn = '"
            + jTFAnvandarnamnAdmin.getText() + "', epost = '" + jTFEpostadressAdmin.getText() + "', losenord = '"
            + jTFLosenordAdmin.getText() + "', roll = '" + jTFRollAnvandareAdmin.getText()  + "' where persnr = '"
                + jTFPersonnummerAnvandareAdmin.getText() + "' ");
            JOptionPane.showMessageDialog(null, "Ändringarna har sparats.");
        } 
        catch(InformatikException exc){
            JOptionPane.showMessageDialog(null, exc.getMessage(), 
                "Nu var det något som gick fel!", JOptionPane.ERROR_MESSAGE);
        }
        
    }
private void läggTillUppdragAdmin() {
    Uppdrag uppdrag = new Uppdrag();
    uppdrag.setUppdragsNamn(jTFUppdragsnamnAdmin.getText());
    int nummer = Integer.parseInt(jTFKontonummerAdmin.getText());
    uppdrag.setKontoNr(nummer);
    
    try {
    idb.insert("INSERT INTO UPPDRAG (KONTONR, UPPDRAGSNAMN) "
                    + "VALUES ( " + uppdrag.getKontoNr() 
                    + ", '" + uppdrag.getUppdragsNamn()  + "')");
    JOptionPane.showMessageDialog(null, jTFUppdragsnamnAdmin.getText() + " har lagts till.");
    rensaUppdragAdmin(); 
    reloadUppdragAdmin();
    }
    catch(InformatikException exc){
                JOptionPane.showMessageDialog(null, exc.getMessage(), 
                    "Nu var det något som gick fel!", JOptionPane.ERROR_MESSAGE);
        }

}
private void redigeraUppdragAdmin(){
    try{
        idb.update("update uppdrag set uppdragsnamn = '"
            + jTFUppdragsnamnAdmin.getText() + "' where kontonr = '" + jTFKontonummerAdmin.getText() +"'");
            JOptionPane.showMessageDialog(null, "Ändringarna har sparats.");
        } 
        catch(InformatikException exc){
            JOptionPane.showMessageDialog(null, exc.getMessage(), 
                "Nu var det något som gick fel!", JOptionPane.ERROR_MESSAGE);
        }
        
    }
private void setTraktamenteEditable(boolean edit) {
        jLblMåltidKonsult.setEnabled(edit);
        jChkFrukostKonsult.setEnabled(edit);
        jChkLunchKonsult.setEnabled(edit);
        jChkMiddagKonsult.setEnabled(edit);
        jLblSemesterKonsult.setEnabled(edit);
        jCbSemesterKonsult.setEnabled(edit);
        jBtnSparaTraktamente.setEnabled(edit);
    }

private void setReseinfoEditable(boolean edit) {
        jLblLandKonsult.setEnabled(edit);
        jCbLandKonsult.setEnabled(edit);
        jBtnLaggTillLandKonsult.setEnabled(edit);
        jLstLandResaKonsult.setEnabled(edit);
        jLblSyfteKonsult.setEnabled(edit);
        jTaSyfteKonsult.setEnabled(edit);
        jLblavresedatumKonsult.setEnabled(edit);
        jTfAvresaDatumKonsult.setEnabled(edit);
        jTfAvresaDatumKonsult.setEditable(edit);
        jLblHemDatumKonsult.setEnabled(edit);
        jTfHemresaDatumKonsult.setEnabled(edit);
        jTfHemresaDatumKonsult.setEditable(edit);
        jLblKontoKonsult.setEnabled(edit);
        jCbKontoKonsult.setEnabled(edit);
        jBtnSparaResaKonsult.setEnabled(edit);



    }

private void setDaginfoEditable(boolean edit) {
        jLblDaginfoDatumKonsult.setEnabled(edit);
        jTfDaginfoDatumKonsult.setEnabled(edit);
        jTfDaginfoDatumKonsult.setEditable(edit);
        jLbDaginfoLandKonsult.setEnabled(edit);
        jCbDaginfoLandKonsult.setEnabled(edit);
        jLblSemesterKonsult.setEnabled(edit);
        jCbSemesterKonsult.setEnabled(edit);
        jLblMåltidKonsult.setEnabled(edit);
        jChkFrukostKonsult.setEnabled(edit);
        jChkLunchKonsult.setEnabled(edit);
        jChkMiddagKonsult.setEnabled(edit);
        jBtnSparaTraktamente.setEnabled(edit);

    }

private void setResedagarEditable(boolean edit) {
        jLstDagarKonsult.setEnabled(edit);
        jBtnNyDagKonsult.setEnabled(edit);
    }

private void setUtgifterEditable(boolean edit) {
        jLblUtgiftstypKonsult.setEnabled(edit);
        jCbUtgiftstypKonsult.setEnabled(edit);
        jLblBeskrivningKonsult.setEnabled(edit);
        jTaUtgiftsBeskrivningKonsult.setEnabled(edit);
        jLblKvittoKonsult.setEnabled(edit);
        jCbKvittoKonsult.setEnabled(edit);
        jLblBeloppKonsult.setEnabled(edit);
        jLblValutaKonsult.setEnabled(edit);
        jTfBeloppKonsult.setEnabled(edit);
        jCbValutaKonsult.setEnabled(edit);
        jLblMomsKonsult.setEnabled(edit);
        jCbMomsKonsult.setEnabled(edit);
        jBtnSparaUtgiftKonsult.setEnabled(edit);
    }
private void setUtgiftIfnoEditable(boolean edit){
jLstUtgifterKonsult.setEnabled(edit);
jBtnNyUtgiftKonsult.setEnabled(edit);
}

private void setValAvUtgiftEditable(boolean edit) {
    jLstUtgifterKonsult.setEnabled(edit);
    jBtnNyUtgiftKonsult.setEnabled(edit);
}

private void reloadKonto() {
    lmKontoKonsultComboBox = new DefaultComboBoxModel();
    jCbKontoKonsult.setModel(lmKontoKonsultComboBox);
    lmKontoKonsultComboBox.addElement( new Uppdrag( 0000000, "-none" ) );
    try {
        String query = "SELECT uppdragsnamn, KONTONR FROM UPPDRAG";
        query += " ORDER BY uppdragsNamn";
        ArrayList<HashMap<String, String>> result = idb.fetchRows(query);
        // loopar igenom resultatet
        for (HashMap<String, String> row : result) {
            Uppdrag uppdrag = new Uppdrag();
            // Hämtar uppdragsNamn, kontrollerar om det finns ett värde på raden
            String kontoNr = row.get("kontonr");
            if (kontoNr != null) {
                uppdrag.setKontoNr(Integer.parseInt(kontoNr));
            }
            uppdrag.setUppdragsNamn(row.get("uppdragsnamn"));
            lmKontoKonsultComboBox.addElement(uppdrag);
        }
    } catch (InformatikException e) {
        JOptionPane.showMessageDialog(null, e.getMessage());
    }
}

private void reloadLand() {

    lmLandKonsultComboBox = new DefaultComboBoxModel();
    lmLandDlgReseOrderComboBox = new DefaultComboBoxModel();
    jCbLandKonsult.setModel(lmLandKonsultComboBox);
    jDlgReseOrderComboBoxLand.setModel(lmLandDlgReseOrderComboBox);
    lmLandKonsultComboBox.addElement( new Land( "-none-" ) );
    try {
        String query = "SELECT landsnamn FROM land";
        query += " ORDER BY landsnamn";
        ArrayList<HashMap<String, String>> result = idb.fetchRows(query);
        // loopar igenom resultatet
        for (HashMap<String, String> row : result) {
            Land land = new Land();
            land.setLandsnamn(row.get("landsnamn"));
            //Lägger till resultatet i våran listmodell 
            jCbLandKonsult.addItem(land);
            jDlgReseOrderComboBoxLand.addItem(land);
        }
    } catch (InformatikException e) {
        JOptionPane.showMessageDialog(null, e.getMessage());
    }
}

private void reloadResa() {
lmReggadResaKonsult = new DefaultListModel();
jLstReggadeResorKonsult.setModel(lmReggadResaKonsult);
//TODO: fixa kommentarerna
//TODO: fixa så slutdatum inte laddas som null
try {

String query = "SELECT RESEID, STARTDATUM, SLUTDATUM, GODKANDAVCHEF, PERSNR, BETALD, SYFTE FROM RESA";
query += " ORDER BY startdatum";
ArrayList<HashMap<String, String>> result = idb.fetchRows(query);
// loopar igenom resultatet
for (HashMap<String, String> row : result) {
    Resa resa = new Resa();
    // Hämtar Landsnamn, startdatum och slutdatum och tilldelar värden till objekt ur klassen Reseinfo
    String reseId = row.get("reseid");
    int reseID = Integer.parseInt(reseId);
    if (reseId != null) {
        resa.setReseID(reseID);
    }
    resa.setStartDatum(row.get("startdatum"));
    //Skapar en lokal variabel och kontrollerar så den har ett värde
    String slutDatum = row.get("slutdatum");
    if (slutDatum != null) {
        resa.setSlutDatum(slutDatum);

    } else {
        resa.setSlutDatum("Pågående");
    }
    String godkand = row.get("godkandavchef");
    if (godkand != null) {
        resa.setGodkandAvChef(row.get(godkand));
    }
    resa.setPersNr(row.get("persnr"));
    String betald = row.get("betald");
    if (betald != null) {
        resa.setBetald(betald);
    }
    String syfte = row.get("syfte");
    if (syfte != null) {
        resa.setSyfte(syfte);
    } else {
        resa.setSyfte("Inget syfte");
    }
    /*String kontoNR = row.get("kontoNr");
    int konto = Integer.parseInt(kontoNR);
    if (kontoNR != null) {
        //resa.setKontoNr(konto);
        JOptionPane.showMessageDialog(null, konto);
    }
     * 
     */
    //Lägger till resultatet i våran listmodell 
    lmReggadResaKonsult.addElement(resa);
}
} catch (InformatikException e) {
JOptionPane.showMessageDialog(null, e.getMessage());
}
}

private void reloadDagar() {
lmLstDagarKonsult = new DefaultListModel();
jLstDagarKonsult.setModel(lmLstDagarKonsult);
//lmLstDagarKonsult.addElement(new Dag("Hej", "då"));

try {

String query = "SELECT DAGID, DATUM, FRUKOST, LUNCH, MIDDAG, LANDSNAMN, RESEID FROM DAG";
//query += " WHERE RESEID = " + jLstReggadeResorKonsult.getSelectedValue();
query += " ORDER BY DATUM";

ArrayList<HashMap<String, String>> result =
        idb.fetchRows(query);
// loopar igenom resultatet
for (HashMap<String, String> row : result) {
    Dag dag = new Dag();
    //Hämtar uppdragsNamn, kontrollerar om det finns ett värde på raden             
    dag.setDagId(row.get("dagid"));
    dag.setDatum(row.get("datum"));
    dag.setFrukost(row.get("frukost"));
    dag.setLunch(row.get("lunch"));
    dag.setMiddag(row.get("middag"));
    dag.setLandsNamn(row.get("landsnamn"));
    String reseId = row.get("reseid");
    if (reseId != null) {
        dag.setReseId(Integer.parseInt(reseId));
    }

    lmLstDagarKonsult.addElement(dag);
}
} catch (InformatikException e) {
JOptionPane.showMessageDialog(null, e.getMessage());
}
}

/*private void reloadReseUppdrag(){
lmLstDagarKonsult = new DefaultListModel();
jLstDagarKonsult.setModel(lmLstDagarKonsult);
//lmLstDagarKonsult.addElement(new Dag("Hej", "då"));

try {

String query = "SELECT DAGID, DATUM, FRUKOST, LUNCH, MIDDAG, LANDSNAMN, RESEID FROM DAG";
//query += " WHERE RESEID = " + jLstReggadeResorKonsult.getSelectedValue();
query += " ORDER BY DATUM";

ArrayList<HashMap<String, String>> result =
        idb.fetchRows(query);
// loopar igenom resultatet
for (HashMap<String, String> row : result) {
    Dag dag = new Dag();
    //Hämtar uppdragsNamn, kontrollerar om det finns ett värde på raden             
    dag.setDagId(row.get("dagid"));
    dag.setDatum(row.get("datum"));
    dag.setFrukost(row.get("frukost"));
    dag.setLunch(row.get("lunch"));
    dag.setMiddag(row.get("middag"));
    dag.setLandsNamn(row.get("landsnamn"));
    String reseId = row.get("reseid");
    if (reseId != null) {
        dag.setReseId(Integer.parseInt(reseId));
    }

    lmLstDagarKonsult.addElement(dag);
}
} catch (InformatikException e) {
JOptionPane.showMessageDialog(null, e.getMessage());
}
}
* 
*/
private void reloadDagarValdResa(int resa) {
lmLstDagarKonsult = new DefaultListModel();
jLstDagarKonsult.setModel(lmLstDagarKonsult);
//lmLstDagarKonsult.addElement(new Dag("Hej", "då"));

try {

String query = "SELECT DAGID, DATUM, FRUKOST, LUNCH, MIDDAG, LANDSNAMN, RESEID FROM DAG";
query += " WHERE RESEID = " + resa;
query += " ORDER BY DATUM";

ArrayList<HashMap<String, String>> result =
        idb.fetchRows(query);
// loopar igenom resultatet
for (HashMap<String, String> row : result) {
    Dag dag = new Dag();
    //Hämtar uppdragsNamn, kontrollerar om det finns ett värde på raden             
    dag.setDagId(row.get("dagid"));
    dag.setDatum(row.get("datum"));
    dag.setFrukost(row.get("frukost"));
    dag.setLunch(row.get("lunch"));
    dag.setMiddag(row.get("middag"));
    dag.setLandsNamn(row.get("landsnamn"));
    String reseId = row.get("reseid");
    if (reseId != null) {
        dag.setReseId(Integer.parseInt(reseId));
    }

    lmLstDagarKonsult.addElement(dag);
}
} catch (InformatikException e) {
JOptionPane.showMessageDialog(null, e.getMessage());
}
}

private void reloadUtgifter(String dag) {

lmLstUtgifterKonsult = new DefaultListModel();
jLstUtgifterKonsult.setModel(lmLstUtgifterKonsult);

try {

    String query = "SELECT UTGIFTSID, BELOPP, BESKRIVNING, KATEGORI, VALUTA, MOMS, DAGID, KVITTO FROM UTGIFTER";
    query += " WHERE DAGID = " + dag;
    query += " ORDER BY dagId";
    ArrayList<HashMap<String, String>> result = idb.fetchRows(query);
    // loopar igenom resultatet
    for (HashMap<String, String> row : result) {
        Utgifter utgifter = new Utgifter();
        // Hämtar uppdragsNamn, kontrollerar om det finns ett värde på raden
        String utgiftsId = row.get("utgiftsId");
        if (utgiftsId != null) {
            utgifter.setUtgiftsId(Integer.parseInt(utgiftsId));
        }
        String belopp = row.get("belopp");
        if (belopp != null) {
            utgifter.setBelopp(Integer.parseInt(belopp));
        }
        utgifter.setBeskrivning(row.get("beskrivning"));
        utgifter.setKategori(row.get( "kategori" ));
        utgifter.setValuta(row.get("valuta"));
        utgifter.setMoms(row.get("moms"));
        utgifter.setDagId(row.get("dagId"));
        String kvitto = row.get("kvitto");
        if(kvitto != null){
            utgifter.setKvitto(Integer.parseInt(kvitto));
        }

        lmLstUtgifterKonsult.addElement(utgifter);
    }
} catch (InformatikException e) {
    JOptionPane.showMessageDialog(null, e.getMessage());
}
}

private void reloadAnvandareAdmin(){
anvandareAdmin = new DefaultListModel(); 
jLiAnvandareAdmin.setModel(anvandareAdmin);
try{
    ArrayList<HashMap<String,String>> resultat = idb.fetchRows("SELECT persnr, namn, epost, roll, losenord from anvandare");

    for(HashMap<String, String> row :resultat){
        Anvandare anvandare = new Anvandare();
        String persnr = row.get("persnr");
        if(persnr != null) {
            anvandare.setpersonNr(persnr);
        }
        anvandare.setnamn(row.get("namn"));
        anvandare.setepost(row.get("epost"));
        anvandare.setroll(row.get("roll"));
        anvandare.setlosenord(row.get("losenord"));
        anvandareAdmin.addElement(anvandare);
    }    
}
catch(Exception e){
    JOptionPane.showMessageDialog(null, e.getMessage(), "fel", JOptionPane.ERROR_MESSAGE);
}
}

private void reloadUppdragAdmin(){
uppdragAdmin = new DefaultListModel(); 
jLUppdragAdmin.setModel(uppdragAdmin);
try{
    ArrayList<HashMap<String,String>> resultat = idb.fetchRows("SELECT uppdragsnamn, kontonr from uppdrag");

    for(HashMap<String, String> row :resultat){
        Uppdrag uppdrag = new Uppdrag();
        int kontonummer = Integer.parseInt(row.get("kontonr"));
            uppdrag.setKontoNr(kontonummer);

        uppdrag.setKontoNr(kontonummer);
        uppdrag.setUppdragsNamn(row.get("uppdragsnamn"));
        uppdragAdmin.addElement(uppdrag);
    }    
}
catch(Exception e){
    JOptionPane.showMessageDialog(null, e.getMessage(), "fel", JOptionPane.ERROR_MESSAGE);
}
}

private void reloadReseordrarChef(){
reseordrarChef = new DefaultListModel(); 
jLiReseOrderChef.setModel(reseordrarChef);
try{
    ArrayList<HashMap<String,String>> resultat = 
            idb.fetchRows("SELECT orderid, syfte, godkand, land, forskott, personnr from reseorder "
            + "where godkand = 0");

    for(HashMap<String, String> row :resultat){
        Reseorder reseorder = new Reseorder();
        int ordernummer = Integer.parseInt(row.get("orderid"));
        reseorder.setorderID(ordernummer);
        reseorder.setSyfte(row.get("syfte"));

        reseorder.setLand(row.get("land"));
        if (row.get("forskott") != null) {
            reseorder.setForskott(row.get("forskott")); 
        }
        else {
            reseorder.setForskott("");
        }
            reseorder.setPersonnummer(row.get("personnr"));

        reseordrarChef.addElement(reseorder);
    }    
}
catch(Exception e){
    JOptionPane.showMessageDialog(null, e.getMessage(), "fel", JOptionPane.ERROR_MESSAGE);
}
}

private void godkannReseOrderChef(){
Reseorder reseorder = (Reseorder) jLiReseOrderChef.getSelectedValue();
int orderid = reseorder.getorderID();
try{

idb.update("update reseorder set godkand = 1 where orderid = " +orderid);
    JOptionPane.showMessageDialog(null, "Reseordern är nu godkänd.");

} 
catch(InformatikException exc){
    JOptionPane.showMessageDialog(null, exc.getMessage(), 
        "Nu var det något som gick fel!", JOptionPane.ERROR_MESSAGE);
}
}

private void reloadLandResa(int resa){
        lmLandResa = new DefaultListModel(); 
        lmLandResaComboBox = new DefaultComboBoxModel(); 
        jLstLandResaKonsult.setModel(lmLandResa);
        jCbDaginfoLandKonsult.setModel(lmLandResaComboBox);
       try{
            String query = "SELECT RESEID, LANDSNAMN FROM LAND_RESA";
            query += " WHERE RESEID = " + resa;
            query += " ORDER BY LANDSNAMN";
            ArrayList<HashMap<String, String>> result = idb.fetchRows(query);
            for(HashMap<String, String> row :result){
                LandResa landResa = new LandResa();
                String reseId = row.get("reseid");
                int reseID = Integer.parseInt(reseId);
                if (reseId != null) {
                    landResa.setReseId(reseID);
                }
                landResa.setLandsnamn(row.get("landsnamn"));
                
                lmLandResa.addElement(landResa);
                lmLandResaComboBox.addElement(landResa);
            }    
        }
        catch(Exception e){
            JOptionPane.showMessageDialog(null, e.getMessage(), "fel", JOptionPane.ERROR_MESSAGE);
        }
    }

private void reloadLandResaDag(int dag){
        lmLandResaComboBox = new DefaultComboBoxModel(); 
        jCbDaginfoLandKonsult.setModel(lmLandResaComboBox);
       try{
            String query = "SELECT RESEID, LANDSNAMN FROM LAND_RESA";
            query += " WHERE RESEID = " + dag;
            query += " ORDER BY LANDSNAMN";
            ArrayList<HashMap<String, String>> result = idb.fetchRows(query);
            for(HashMap<String, String> row :result){
                LandResa landResa = new LandResa();
                String reseId = row.get("reseid");
                int reseID = Integer.parseInt(reseId);
                if (reseId != null) {
                    landResa.setReseId(reseID);
                }
                landResa.setLandsnamn(row.get("landsnamn"));
                
                lmLandResaComboBox.addElement(landResa);
            }    
        }
        catch(Exception e){
            JOptionPane.showMessageDialog(null, e.getMessage(), "fel", JOptionPane.ERROR_MESSAGE);
        }
    }
private void laddaForskottsDialog()
{
    Reseorder forskott = (Reseorder) jLiForskottAdmin.getSelectedValue();
    jTFKonsultnamnForskottAdmin.setText(forskott.hamtaKonsultNamn(forskott.getPersonnummer()));
    jTASyfteForskottAdmin.setText(forskott.getLand());
    jTFSyfteForskottAdmin.setText(forskott.getSyfte());
    jTFBeloppForskottAdmin.setText(forskott.getForskott());

}
private void reloadForskottAdmin() {
    forskottAdmin = new DefaultListModel();
    jLiForskottAdmin.setModel(forskottAdmin);
    try{
    ArrayList<HashMap<String,String>> resultat =
        idb.fetchRows("SELECT orderid, syfte, godkand, land, forskott, personnr from reseorder "
             + "where godkand = 1");

    for(HashMap<String, String> row :resultat){
        Reseorder forskott = new Reseorder();
        int ordernummer = Integer.parseInt(row.get("orderid"));
        forskott.setorderID(ordernummer);
        forskott.setSyfte(row.get("syfte"));
         int godkand = Integer.parseInt(row.get("godkand"));
        forskott.setGodkand(godkand);
        forskott.setLand(row.get("land"));
        forskott.setForskott(row.get("forskott"));
        forskott.setPersonnummer(row.get("personnr"));
        forskottAdmin.addElement(forskott);
        }
    }
        catch(Exception e){
        JOptionPane.showMessageDialog(null, e.getMessage(), "fel", JOptionPane.ERROR_MESSAGE);
    }

}
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton JBtnSkickaForskottAdmin;
    private javax.swing.JDialog JDForskottPopupAdmin;
    private javax.swing.JButton jBtnAntalMilOKKonsult;
    private javax.swing.JButton jBtnAvslåReseorderChef;
    private javax.swing.JButton jBtnClose;
    private javax.swing.JButton jBtnGodkännReseorderChef;
    private javax.swing.JButton jBtnLaggTillLandKonsult;
    private javax.swing.JButton jBtnLaggTillNyUppdragAdmin;
    private javax.swing.JButton jBtnLäggTillNyAnvAdmin;
    private javax.swing.JButton jBtnNyDagKonsult;
    private javax.swing.JButton jBtnNyUtgiftKonsult;
    private javax.swing.JButton jBtnOk;
    private javax.swing.JButton jBtnRaderaAnvandareAdmin;
    private javax.swing.JButton jBtnRaderaUppdragAdmin;
    private javax.swing.JButton jBtnRedigeraAnvändareAdmin;
    private javax.swing.JButton jBtnRedigeraUppdragAdmin;
    private javax.swing.JButton jBtnReseOrderKonsult;
    private javax.swing.JButton jBtnSparaAnvandareAdmin;
    private javax.swing.JButton jBtnSparaResaKonsult;
    private javax.swing.JButton jBtnSparaTraktamente;
    private javax.swing.JButton jBtnSparaUppdragAdmin;
    private javax.swing.JButton jBtnSparaUtgiftKonsult;
    private javax.swing.JButton jBtnVisaInfoKostnadsöversiktAdmin;
    private javax.swing.JButton jBtnVisaInfoforskottrAdmin;
    private javax.swing.JButton jButton2;
    private javax.swing.JCheckBox jCBForskottReseorderChef;
    private javax.swing.JCheckBox jCBJaReseorder;
    private javax.swing.JComboBox jCbDaginfoLandKonsult;
    private javax.swing.JComboBox jCbKontoKonsult;
    private javax.swing.JCheckBox jCbKvittoKonsult;
    private javax.swing.JComboBox jCbLandKonsult;
    private javax.swing.JComboBox jCbMomsKonsult;
    private javax.swing.JCheckBox jCbSemesterKonsult;
    private javax.swing.JComboBox jCbUtgiftstypKonsult;
    private javax.swing.JComboBox jCbValutaKonsult;
    private javax.swing.JCheckBox jChkFrukostKonsult;
    private javax.swing.JCheckBox jChkLunchKonsult;
    private javax.swing.JCheckBox jChkMiddagKonsult;
    private javax.swing.JComboBox jDlgReseOrderComboBoxLand;
    private javax.swing.JDialog jDreseOrder;
    private javax.swing.JLabel jLAnvandarNamnAdmin;
    private javax.swing.JList jLGodkändaPosterAdmin;
    private javax.swing.JList jLUppdragAdmin;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel jLbDaginfoLandKonsult;
    private javax.swing.JLabel jLbSyfteAdmin;
    private javax.swing.JLabel jLblAnsoktforskottChef;
    private javax.swing.JLabel jLblAntalMilKonsult;
    private javax.swing.JLabel jLblBeloppKonsult;
    private javax.swing.JLabel jLblBeloppReseorderChef;
    private javax.swing.JLabel jLblBeskrivningKonsult;
    private javax.swing.JLabel jLblDaginfoDatumKonsult;
    private javax.swing.JLabel jLblDatumReseersChef;
    private javax.swing.JLabel jLblEpostAdmin;
    private javax.swing.JLabel jLblErsättningKonsult;
    private javax.swing.JLabel jLblHemDatumKonsult;
    private javax.swing.JLabel jLblKonsultNamnReseChef;
    private javax.swing.JLabel jLblKontoKonsult;
    private javax.swing.JLabel jLblKontonummerAdmin;
    private javax.swing.JLabel jLblKvittoKonsult;
    private javax.swing.JLabel jLblLandAdmin;
    private javax.swing.JLabel jLblLandKonsult;
    private javax.swing.JLabel jLblLandReseersChef;
    private javax.swing.JLabel jLblLandReseorderChef;
    private javax.swing.JLabel jLblLosenordAnvandareAdmin;
    private javax.swing.JLabel jLblMilersattningKonsult;
    private javax.swing.JLabel jLblMomsKonsult;
    private javax.swing.JLabel jLblMåltidKonsult;
    private javax.swing.JLabel jLblNamnReseorderChef;
    private javax.swing.JLabel jLblPersonnummerAnvandareAdmin;
    private javax.swing.JLabel jLblRoll;
    private javax.swing.JLabel jLblSemesterKonsult;
    private javax.swing.JLabel jLblSyfteKonsult;
    private javax.swing.JLabel jLblSyfteReseersChef;
    private javax.swing.JLabel jLblSyfteReseorderChef;
    private javax.swing.JLabel jLblUppdragsnamnAdmin;
    private javax.swing.JLabel jLblUtgifterReseersChef;
    private javax.swing.JLabel jLblUtgiftstypKonsult;
    private javax.swing.JLabel jLblValutaKonsult;
    private javax.swing.JLabel jLblavresedatumKonsult;
    private javax.swing.JLabel jLblnamnAdmin;
    private javax.swing.JList jLiAnvandareAdmin;
    private javax.swing.JList jLiDatumReseChef;
    private javax.swing.JList jLiForskottAdmin;
    private javax.swing.JList jLiReseOrderChef;
    private javax.swing.JList jLiReseersattningChef;
    private javax.swing.JList jLstDagarKonsult;
    private javax.swing.JList jLstLandResaKonsult;
    private javax.swing.JList jLstReggadeResorKonsult;
    private javax.swing.JList jLstUtgifterKonsult;
    private javax.swing.JPanel jPAdmin;
    private javax.swing.JPanel jPAnvandareAdmin;
    private javax.swing.JPanel jPAnvandareKantAdmin;
    private javax.swing.JPanel jPCardLayoutChef;
    private javax.swing.JPanel jPChef;
    private javax.swing.JPanel jPChefArendeKant;
    private javax.swing.JPanel jPDaginfoKonsult;
    private javax.swing.JPanel jPKonsult;
    private javax.swing.JPanel jPKostnadsOversiktAdmin;
    private javax.swing.JPanel jPNyaArendenChef;
    private javax.swing.JPanel jPReggaNyUtgiftKonsult;
    private javax.swing.JPanel jPReggadeUtgifterKonsult;
    private javax.swing.JPanel jPRegistreradeResorKonsult;
    private javax.swing.JPanel jPResedagarKonsult;
    private javax.swing.JPanel jPReseersattningChef;
    private javax.swing.JPanel jPReseersattningKantChef;
    private javax.swing.JPanel jPReseinfoKonsult;
    private javax.swing.JPanel jPReseorderChef;
    private javax.swing.JPanel jPReseorderKantChef;
    private javax.swing.JPanel jPUppdragAdmin;
    private javax.swing.JPanel jPUppdragKantAdmin;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JPanel jPanel6;
    private javax.swing.JPanel jPanel8;
    private javax.swing.JPanel jPdagarKonsult;
    private javax.swing.JPanel jPforskottAdmin;
    private javax.swing.JPanel jPkostnadsÖversiktKantAdmin;
    private javax.swing.JPanel jPvilketLandKonsult;
    private javax.swing.JScrollPane jScrlPchooseDayKonsult;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane10;
    private javax.swing.JScrollPane jScrollPane11;
    private javax.swing.JScrollPane jScrollPane12;
    private javax.swing.JScrollPane jScrollPane13;
    private javax.swing.JScrollPane jScrollPane14;
    private javax.swing.JScrollPane jScrollPane15;
    private javax.swing.JScrollPane jScrollPane17;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    private javax.swing.JScrollPane jScrollPane4;
    private javax.swing.JScrollPane jScrollPane5;
    private javax.swing.JScrollPane jScrollPane6;
    private javax.swing.JScrollPane jScrollPane7;
    private javax.swing.JScrollPane jScrollPane8;
    private javax.swing.JScrollPane jScrollPane9;
    private javax.swing.JScrollPane jScrollReseOrderChef;
    private javax.swing.JScrollPane jScrollReseersattningChef;
    private javax.swing.JTextArea jTASyfteForskottAdmin;
    private javax.swing.JTextArea jTASyfteReseersChef;
    private javax.swing.JTextField jTFAnvandarnamnAdmin;
    private javax.swing.JTextField jTFBeloppForskottAdmin;
    private javax.swing.JTextField jTFBeloppReseorderChef;
    private javax.swing.JTextField jTFEpostadressAdmin;
    private javax.swing.JTextField jTFKonsultReseorderChef;
    private javax.swing.JTextField jTFKonsultnamnForskottAdmin;
    private javax.swing.JTextField jTFKontonummerAdmin;
    private javax.swing.JTextField jTFLandReseersChef;
    private javax.swing.JTextField jTFLandReseorderChef;
    private javax.swing.JTextField jTFLosenordAdmin;
    private javax.swing.JTextField jTFNamnReseersChef;
    private javax.swing.JTextField jTFPersonnummerAnvandareAdmin;
    private javax.swing.JTextField jTFRollAnvandareAdmin;
    private javax.swing.JTextField jTFSyfteForskottAdmin;
    private javax.swing.JTextArea jTFSyfteReseorderChef;
    private javax.swing.JTextField jTFUppdragsnamnAdmin;
    private javax.swing.JTextArea jTaSyfteKonsult;
    private javax.swing.JTextArea jTaUtgiftsBeskrivningKonsult;
    private javax.swing.JTable jTblUgifterReseChef;
    private javax.swing.JTextArea jTextArea1;
    private javax.swing.JTextArea jTextArea2;
    private javax.swing.JTextField jTfAntalMilKonsult;
    private javax.swing.JTextField jTfAvresaDatumKonsult;
    private javax.swing.JTextField jTfBeloppKonsult;
    private javax.swing.JTextField jTfDaginfoDatumKonsult;
    private javax.swing.JTextField jTfHemresaDatumKonsult;
    private javax.swing.JTextField jTfMilersattningKonsult;
    private javax.swing.JTabbedPane jTpFlikar;
    private javax.swing.JTextField jTxtFieldBeloppReseorder;
    private javax.swing.JTextField jTxtFieldDatumFran;
    private javax.swing.JTextField jTxtFieldDatumTill;
    private javax.swing.JTextField jTxtFieldkonsultNamn;
    private javax.swing.JPanel mainPanel;
    private javax.swing.JMenuBar menuBar;
    private javax.swing.JProgressBar progressBar;
    private javax.swing.JLabel statusAnimationLabel;
    private javax.swing.JLabel statusMessageLabel;
    private javax.swing.JPanel statusPanel;
    // End of variables declaration//GEN-END:variables
    private final Timer messageTimer;
    private final Timer busyIconTimer;
    private final Icon idleIcon;
    private final Icon[] busyIcons = new Icon[15];
    private int busyIconIndex = 0;
    private JDialog aboutBox;
    private InformatikDB idb; // Databasanslutning
    //Våra listmodels läggs nedanför detta
    private DefaultComboBoxModel lmKontoKonsultComboBox = null; //combobomodell för Konto
    private DefaultComboBoxModel lmLandKonsultComboBox = null; //comboboxmodell för Land
    private DefaultComboBoxModel lmLandDlgReseOrderComboBox = null; //combobomodell för Land i pop-up reseorder
    private DefaultComboBoxModel lmLandResaComboBox = null;
    private DefaultListModel lmReggadResaKonsult = null; //listmodell för Resor
    private DefaultListModel lmLstDagarKonsult = null; //listmodell för Dagar
    private DefaultListModel lmLstUtgifterKonsult = null; //listmodell för Utgifter
    private DefaultListModel anvandareAdmin = null; //listmodell för användare på adminvyn.
    private DefaultListModel uppdragAdmin = null; //listmodell för uppdrag på adminvy.
    private DefaultListModel reseordrarChef = null; //listmodell för reseordrar för chefsvyn. 
    private DefaultListModel lmLandResa = null; //listmodell för land som hör till en resa. 
    private DefaultListModel forskottAdmin = null; //listmodell för förskottslistan på adminvyn.
    private Validering validering;
}
